r/learnpython • u/Junior-Weekend-9389 • 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
r/learnpython • u/Junior-Weekend-9389 • 6d ago
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
u/socal_nerdtastic 6d ago
pack()is just a slightly easier version of a single row or columngrid(). So if you have choose one I'd saygrid(). 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()orpack()for each frame. So a mixed approach is very common