@@JekyllHydeTutorials ah ok.. I am new to all this gui stuff so I thought that there might be som reason for doing it this way .. maybe som extra stuff happening hidden in the background.... anyway thanks for the reply
hello sir, i have 1 trouble when working with QStackedWidget, i can't align it to center, for details I have a Frame, I put Labels and Widgets in it and they're all center align, but when i add QStackedWidget, itself and all my labels has been aligned to top-left, please help me thank you very much
thank's for the video. It was very useful. i want to ask you a question, if i want to divide my app to several classes that correspond to each widget (blue, red, yellow) how could i perform that ?
Great video so far but I am really itching to comment that hopefully you have learned that arrow keys and tab are your best friends when typing commands... BTW really helpful video...
can i put buttons on stacked widget and change page on these buttons? btw very useful and good video and i like your desktop, maximum of minimalism, love that
Anything on the stacked widget can be programmed to perform a function. Just need to be mindful, that if you are using the functionality of the stacked widget for a menu, you need a way to get the menu visible again. I stripped the desktop back a while ago. I run a series of images now rather than the plain black but for a time there it was my favourite!
Hi, thank you so much for the tutorial for the stacked widget. I have a question, though. Is that the convention to convert the UI file into a py file, and import it into the coding file? Thanks. Since I could do like this without convertion: ``` from PyQt5.uic import loadUi class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.ui = loadUi('stack_widget.ui',self) self.ui.stackedWidget.setCurrentWidget(self.ui.home) ``` The rest of the code would be the same.
So I have a few push buttons on one page of the stacked widget and When it is clicked I want another page to get displayed. I have tried every possible method, it doesn't seem to be working.
Potentially a couple of different issues here. Could be that the way you are referencing the packages doesn't align between how they're imported and how they're called in the code. Or potentially you might have named the components of your interface differently to how they're referenced in the Python code. If you can share your code in the comments here I can take a look.
PS C:\Color.Swi tch.Tutona> pyuic5 MainWindow.ui -o ui_Mainwindow.pycd '"C:\Users\Tarek\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.9\python"' is not recognized as an internal or external command, operable program or batch file.
Ohhh myy God. I can't thank you enough bro... I looked entire youtube for this video.
You saved my calculator multi window project
Glad it was able to help in some way!
i just spent 50 bucks on a book and udemy courses for this exact use case. subscribed
I will push out a little more content in the coming while. Just hope it helps.
@JekyllHydeTutorials .. why did you start with a "Main Window" and remove the menubar and statusbar instead of starting with a "Widget"?
Force of habit that one!
@@JekyllHydeTutorials ah ok.. I am new to all this gui stuff so I thought that there might be som reason for doing it this way .. maybe som extra stuff happening hidden in the background.... anyway thanks for the reply
This really helped. Thank you! You just earned a follower 🎉
Loved this vid! You are a great programmer, thought-through and well-explained videos. Thank you for this. Subscribed with all notificaions.
Awesome, thank you!
I like the way Australians explain things.
Thanks mate. Just hope it helps!
u deserve more subs
Thanks mate, I appreciate the compliment!
hello sir, i have 1 trouble when working with QStackedWidget, i can't align it to center, for details I have a Frame, I put Labels and Widgets in it and they're all center align, but when i add QStackedWidget, itself and all my labels has been aligned to top-left, please help me
thank you very much
thank's for the video. It was very useful. i want to ask you a question, if i want to divide my app to several classes that correspond to each widget (blue, red, yellow) how could i perform that ?
the best tutorial
Thank you! What sort of thing would you want next?
Great video so far but I am really itching to comment that hopefully you have learned that arrow keys and tab are your best friends when typing commands... BTW really helpful video...
can i put buttons on stacked widget and change page on these buttons? btw very useful and good video and i like your desktop, maximum of minimalism, love that
Anything on the stacked widget can be programmed to perform a function. Just need to be mindful, that if you are using the functionality of the stacked widget for a menu, you need a way to get the menu visible again.
I stripped the desktop back a while ago. I run a series of images now rather than the plain black but for a time there it was my favourite!
Hi, thank you so much for the tutorial for the stacked widget. I have a question, though.
Is that the convention to convert the UI file into a py file, and import it into the coding file? Thanks.
Since I could do like this without convertion:
```
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.ui = loadUi('stack_widget.ui',self)
self.ui.stackedWidget.setCurrentWidget(self.ui.home)
```
The rest of the code would be the same.
So I have a few push buttons on one page of the stacked widget and When it is clicked I want another page to get displayed. I have tried every possible method, it doesn't seem to be working.
A couple of options. Specifically I would start by looking at making sure that the names of the widget pages match the section in your code.
Hi, did you manage to find the solution? I'm having the exact same problem.
if i want to connect a tool bar icon to move between pages the concept will be the same?
My understanding is that they would function very similarly.
Very useful! Thank you mate
Thanks mate! Appreciate the support!
Mate, I really hope you get more views. Cheers!
Probably just need to get more videos up first!
That was wonderful. Thank you.
Amazing, Thanks man !
New subscriber!
Thanks a lot, keep up the good work.
this is great although I am getting weird error with PyQt5.QtWidgets no name in the module
Potentially a couple of different issues here.
Could be that the way you are referencing the packages doesn't align between how they're imported and how they're called in the code.
Or potentially you might have named the components of your interface differently to how they're referenced in the Python code.
If you can share your code in the comments here I can take a look.
thanks man, how to contact u?
Thanks mate
No worries. Happy that the content helped.
thnks bro, this one help me
No problems mate! Happy to help!
nice ^^
Today I learned you don't have to install modules for each individual project, you can just use your existing Python install. Omg..
PS C:\Color.Swi
tch.Tutona> pyuic5 MainWindow.ui -o ui_Mainwindow.pycd
'"C:\Users\Tarek\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.9\python"' is not recognized as an internal or external
command,
operable program or batch file.
i sold your kindle.