PyQt5 Designer + Python Stacked Widget Walkthrough

  Рет қаралды 39,075

Jekyll&HydeTutorials

Jekyll&HydeTutorials

Күн бұрын

In this tutorial, I present a really quick Stacked Widget design using PyQt5.
I step through how to build the stacked widget app in Qt5 Designer, why using a stacked widget is a great choice for development, how to import your UI file into PyCharm (including how to convert it from XML to Python) and then how to code the Python side of things to get the application functioning.
This is a complete walk through of the process from opening Qt5 Designer all the way through to running the app in PyCharm.
Music: Smile by BenSound.

Пікірлер: 49
@peekaboo6026
@peekaboo6026 3 жыл бұрын
Ohhh myy God. I can't thank you enough bro... I looked entire youtube for this video. You saved my calculator multi window project
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Glad it was able to help in some way!
@filmingle6227
@filmingle6227 Жыл бұрын
Loved this vid! You are a great programmer, thought-through and well-explained videos. Thank you for this. Subscribed with all notificaions.
@JekyllHydeTutorials
@JekyllHydeTutorials Жыл бұрын
Awesome, thank you!
@ministawilly
@ministawilly 10 ай бұрын
This really helped. Thank you! You just earned a follower 🎉
@RiadhBoutarfa
@RiadhBoutarfa 3 жыл бұрын
New subscriber! Thanks a lot, keep up the good work.
@shobhitsylvester7330
@shobhitsylvester7330 2 жыл бұрын
That was wonderful. Thank you.
@AbdulWahab-kk1hs
@AbdulWahab-kk1hs 4 жыл бұрын
This is what I needed! Thanks mate
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Perfect mate! Really appreciate the feedback. What component would you want next?
@botambucollins3769
@botambucollins3769 2 жыл бұрын
@@JekyllHydeTutorials i have big problem with displaying item on table in PyQt5, e.g, u have 6 qpushbuttons, each button represent a product and price,i want a situation where when a button is clicked it display the product name and price, if click twice, it will doubt price and qty, if i could contract personally i will, please look it to this.thanks
@AntonioRodriguez-fv6vt
@AntonioRodriguez-fv6vt 3 жыл бұрын
Very useful! Thank you mate
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Thanks mate! Appreciate the support!
@DannielaPintoD
@DannielaPintoD 3 жыл бұрын
the best tutorial
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Thank you! What sort of thing would you want next?
@abdulrahmanatwah1727
@abdulrahmanatwah1727 3 жыл бұрын
Amazing, Thanks man !
@enacheandrei7932
@enacheandrei7932 3 жыл бұрын
Mate, I really hope you get more views. Cheers!
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Probably just need to get more videos up first!
@madjiddjennane7788
@madjiddjennane7788 3 жыл бұрын
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 ?
@josemadarieta865
@josemadarieta865 3 жыл бұрын
i just spent 50 bucks on a book and udemy courses for this exact use case. subscribed
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
I will push out a little more content in the coming while. Just hope it helps.
@johnemanuelalamares2206
@johnemanuelalamares2206 3 жыл бұрын
u deserve more subs
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Thanks mate, I appreciate the compliment!
@user-fi2ty4bm2n
@user-fi2ty4bm2n 2 жыл бұрын
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.
@camellia3698
@camellia3698 3 жыл бұрын
thnks bro, this one help me
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
No problems mate! Happy to help!
@prashkd7684
@prashkd7684 3 жыл бұрын
I like the way Australians explain things.
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
Thanks mate. Just hope it helps!
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
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...
@hisheighnessthesupremebeing
@hisheighnessthesupremebeing Жыл бұрын
@JekyllHydeTutorials .. why did you start with a "Main Window" and remove the menubar and statusbar instead of starting with a "Widget"?
@JekyllHydeTutorials
@JekyllHydeTutorials Жыл бұрын
Force of habit that one!
@hisheighnessthesupremebeing
@hisheighnessthesupremebeing Жыл бұрын
@@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
@oguzturkyilmaz543
@oguzturkyilmaz543 3 жыл бұрын
Thanks mate
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
No worries. Happy that the content helped.
@jsctohfish293
@jsctohfish293 2 жыл бұрын
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
@lynx0001
@lynx0001 3 жыл бұрын
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
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
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!
@Life-zx5wp
@Life-zx5wp 3 жыл бұрын
nice ^^
@rithika6077
@rithika6077 3 жыл бұрын
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.
@JekyllHydeTutorials
@JekyllHydeTutorials 3 жыл бұрын
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.
@RakaZet
@RakaZet 3 жыл бұрын
Hi, did you manage to find the solution? I'm having the exact same problem.
@tomh12341
@tomh12341 Жыл бұрын
if i want to connect a tool bar icon to move between pages the concept will be the same?
@JekyllHydeTutorials
@JekyllHydeTutorials Жыл бұрын
My understanding is that they would function very similarly.
@GoodBoyDanny
@GoodBoyDanny 4 жыл бұрын
this is great although I am getting weird error with PyQt5.QtWidgets no name in the module
@JekyllHydeTutorials
@JekyllHydeTutorials 4 жыл бұрын
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.
@botambucollins3769
@botambucollins3769 2 жыл бұрын
thanks man, how to contact u?
@gamdgdn7884
@gamdgdn7884 2 жыл бұрын
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.
@cloudzy7972
@cloudzy7972 Жыл бұрын
i sold your kindle.
@Jdeadevil
@Jdeadevil Жыл бұрын
Today I learned you don't have to install modules for each individual project, you can just use your existing Python install. Omg..
PyQt5 Designer + Python Horizontal Slider Walkthrough
10:57
Jekyll&HydeTutorials
Рет қаралды 7 М.
Qt Widgets - Stacked Widget (Advanced)
54:05
CrossControl
Рет қаралды 36 М.
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 60 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
How to use Qt Layouts
19:18
Velcode
Рет қаралды 90 М.
QtDesigner and PyQt5:  The right and wrong way to use them together
37:16
Alan D Moore Codes
Рет қаралды 107 М.
Working With Qt Designer's UI Files And PyQt
19:17
DistroTube
Рет қаралды 15 М.
Creating PyQt Layouts for GUI Python Applications
13:56
Real Python
Рет қаралды 29 М.
PyQT5 Designer Drag and Drop GUI - PyQt5 GUI Thursdays #6
13:25
Codemy.com
Рет қаралды 158 М.
Python Tkinter GUI Application With Multiple Pages | Switch Pages in Tkinter | Tkinter Pagination
42:33
PyQt5 Tutorial - How to Use Qt Designer
10:53
Tech With Tim
Рет қаралды 786 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 495 М.
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 414 М.
Mastering Picture Editing: Zoom Tools Tutorial
0:52
Photoo Edit
Рет қаралды 505 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН