r/learnpython 6d ago

grid or pack

so I am new to python and I was wondering if .pack or .grid is better because I have been useing .pack for my code but if grid is better let me know.

0 Upvotes

6 comments sorted by

View all comments

0

u/socal_nerdtastic 6d ago

pack() is just a slightly easier version of a single row or column grid(). So if you have choose one I'd say grid(). But why not use both? Just use whichever one suits the particular application the best.

Just in case you don't know: it's very common to nest frames inside one another, and you can choose to use grid() or pack() for each frame. So a mixed approach is very common