How to create and animate an expandable Sidebar menu In Python | Pyside6 / PyQt6 (2023)
Vložit
- čas přidán 21. 12. 2023
- Today we build a simple GUI Sidebar Menu in Python. For the graphical user interface we use PySide6 or PyQt6 inside QtDesigner.
Accessories
www.mediafire.com/folder/0iou...
Great lesson. Thank you. I applied it to my project !
This was really brilliant. So clear. Much appreciated.
Awesome!!!! Marvellous work!!!
Fantastic work!
Oh man. I was so upset at a project because it wouldn't import my resource files. I gave up on it then watched this video just for entertainment and then you formatted the .qrc file to an .rc file and made a lightbulb go on over my head. I needed to convert it to be readable. Lol. Thanks
Nice! Thank you
Fantastic video. Thank you!
Glad you liked it!
Really helpful video, thanks!
You're welcome
You have a new follower Sir
awesome
You are my hero
Thanks!
You're blessed
thanks a lot from Colombia you are a master
You are welcome!
great thanku so much
Most welcome 😊
Bro, it's awesome!! Please do more tuts like this one and more python! I subscribed your channel! Thank you very much for your time to show such fantastic knowledge! I learned a lot something new for Me from you tutorials!
The Best tutorial
Thank you for watching
can the stacked widget not collapse when the icon with name is expanded? like it would just pop up above the stacked widget and turn it dark or something?
how can i make the sidebar have animation when hide/show ?
Top Top Top
Is it suitable for enterprise level.
I tried the toggle functionality but upon clicking it shows no result
When I put elements or widgets on a page, for example 'messages_page', they do not grow proportionally on the page when I maximize the window. They remain in their position on the window, although the entire program window becomes larger. How can I change this in the program code?
There is a concept called "Size policies and stretches". It's only that I didn't mention that in this video. But in this concept you are able to make an object expandable both vertically and horizontally
Hi, can you tell me. When I configure the panel to hide and appear, the text panel does not take up space with the icon panel. They stay in their places and only disappear and appear in turn
You may have missed a step when I do horizontal layout, vertical layout or grid layout of the widgets. Make sure to follow the steps as I do carefully. Otherwise it may not work
Very beautiful tutorial.
Thank you!
Please a CRUD 3.0
why when you check a button, other button become unckeck? how did you do that?
i got it, select all pushbuttong and right click to add to a button group
Please follow each step in the video. I explained mutually exclusive in the video
how to hide stackedwidget pager?
Do you mean the arrows that appear at the top right corner. I realized when you implement your software and convert UI file to python file, you won't see it appearing. It's as easy as that
@@CreateBeautifulThings awesome, thank
Hi! Please, take me you .ui file and python code.
your rushing the code explaination and then the uft 8 be changed before converting the ui to py file
If I didn't speed up the code the video would be longer than 1 hour. Above all, I wish the video was of help and that you understood the coding process
That was extremely helpful!
But I have a suggestion for button attributions:
# Connecting the buttons directly to the switch_page method
self.dashboard_1.clicked.connect(lambda: self.switch_page(0))
self.dashboard_2.clicked.connect(lambda: self.switch_page(0))
self.profile_1.clicked.connect(lambda: self.switch_page(1))
self.profile_2.clicked.connect(lambda: self.switch_page(1))
self.messages_1.clicked.connect(lambda: self.switch_page(2))
self.messages_2.clicked.connect(lambda: self.switch_page(2))
self.settings_1.clicked.connect(lambda: self.switch_page(3))
self.settings_2.clicked.connect(lambda: self.switch_page(3))
# Single method to switch pages
def switch_page(self, index):
self.stackedWidget.setCurrentIndex(index)