It's optional. I like to use a main frame to cover the window so that if I decide to add padding around the window (on all 4 sides), I then just need to apply padding to the main frame and not individual smaller frames. The video mentions this topic at 32:56
Hello. If 2 widgets have the same parent, those 2 widgets can use pack() or grid(), but not pack and grid together. That's just the way Tkinter is designed. They are two different geometry managers. You can, however, use multiple frames and put widgets inside them. The widgets inside those frames can use a different geometry manager. For example: if Frame1 contains Button1 and Button2, and Frame2 contains Button3 and Button4, then Button1 and Button2 can use .pack(), while Button3 and Button4 can use .grid().
Wow, great explanation 👏
this helped a lot .Thanks
Glad it helped! Thanks for watching.
I have a huge project using TKinter, will it be available to give me some help as an item of advice when I can't move forward?
What is the pupose of creating main_frame?
Why not to put the smaller frames into root?
It's optional. I like to use a main frame to cover the window so that if I decide to add padding around the window (on all 4 sides), I then just need to apply padding to the main frame and not individual smaller frames. The video mentions this topic at 32:56
Why can't we use grid() and pack() method on one root,master window it gives error
Hello. If 2 widgets have the same parent, those 2 widgets can use pack() or grid(), but not pack and grid together. That's just the way Tkinter is designed. They are two different geometry managers. You can, however, use multiple frames and put widgets inside them. The widgets inside those frames can use a different geometry manager. For example: if Frame1 contains Button1 and Button2, and Frame2 contains Button3 and Button4, then Button1 and Button2 can use .pack(), while Button3 and Button4 can use .grid().
@@jobinpy great explanation. Thanks
Which IDE is this?
Hi Aaron, in this video I was using Wing IDE. Thanks for watching.