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

ความคิดเห็น • 11

  • @TkinterPython
    @TkinterPython  4 หลายเดือนก่อน +2

    ▶ 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

  • @blassicilia7024
    @blassicilia7024 4 หลายเดือนก่อน +1

    This is really helpful if you are a beginner like me. Thank you!

    • @TkinterPython
      @TkinterPython  4 หลายเดือนก่อน

      Glad you enjoyed it!

  • @djl3009
    @djl3009 4 หลายเดือนก่อน

    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 .

    • @TkinterPython
      @TkinterPython  4 หลายเดือนก่อน

      Yeah, I only use place for very specific things...and then, not often.

  • @dawidrucinski1881
    @dawidrucinski1881 4 หลายเดือนก่อน

    I like your tutorials

    • @TkinterPython
      @TkinterPython  4 หลายเดือนก่อน +1

      Thanks! Appreciate it!

  • @kevinkurani93
    @kevinkurani93 4 หลายเดือนก่อน

    Great video!
    Will you do more on object oriented programming?

  • @AB-cd5gd
    @AB-cd5gd 4 หลายเดือนก่อน +1

    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

    • @TkinterPython
      @TkinterPython  4 หลายเดือนก่อน

      Next week we'll look at pack forget, that will do the trick.