I have a GUI application in Python that has two buttons both aligned to the left side, the code looks like this:
Button(root, text="blah").pack(side=LEFT)
Button(root, text="blah").pack(side=LEFT)
This code works great, but in the GUI how would you put these two buttons on different lines?
(assuming you’re using Tkinter) I think you’d just pack it…
e.g.
Note that generally, it is better practice to make the button and then pack it on separate lines.
This sort of geometry can also be accomplished with grid.
However, you shouldn’t mix grid and pack geometry manager…(pick one and stick with it)