Pack Vs Grid For Placement - Intro To Tkinter 3
ฝัง
- เผยแพร่เมื่อ 1 ส.ค. 2024
- In this video we'll learn about Pack and Grid for placement with Tkinter and Python.
Pack and Grid are two very different ways to place widgets in Tkinter..
In this video we'll learn how to use each, and also when to use each!
We'll also look at a hack that allows you to use both pack and grid at the same time!
#tkinter #codemy #JohnElder
Timecodes
0:00 - Introduction
1:10 - Pack Some Buttons
2:12 - Pady Tuple Trick
2:55 - Expand with Fill
4:20 - Grid Rules
5:45 - Use Frame to Pack and Grid
6:52 - Create More Buttons to Grid
7:57 - Grid Padx
8:25 - Second Row Button
9:45 - ColumnSpan Stretch Button
10:35 - Sticky Expand Button
11:40 - Conclusion
▶ Watch Intro To Tkinter Playlist ✅ FREE Tkinter Widget Book
bit.ly/3wwUe21 bit.ly/3K4qlZC
▶ See More At: ✅ Subscribe To My TH-cam Channel:
Tkinter.com bit.ly/3Pk1By4
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
30% off with coupon code: youtube bit.ly/2GFmOBz
▶ Get The Code For This Video
bit.ly/3dCzz2K
This is really helpful if you are a beginner like me. Thank you!
Glad you enjoyed it!
This is a great side-by-side comparison of pack vs grid. I find these geometry managers very challenging when using more complex widgets like a listbox with scroll bars -- I end up having to use "place" which isn't ideal as I then have to fix the size of the window .
Yeah, I only use place for very specific things...and then, not often.
I like your tutorials
Thanks! Appreciate it!
Great video!
Will you do more on object oriented programming?
Probably
Cool! Do you happen to have made a video on how to make a sort of hover frame, like you click on a notification icon and it shows a frame above but only a frame not a new window
Next week we'll look at pack forget, that will do the trick.