grid is a funny geometry. If you plan out your screen on a grid, it works well. It tends to be quite finicky.
to fill a frame, use
and to set the columns correctly. Also, it's good to use an odd number so you need to center.
It's next to impossible to get it right if you don't draw it out first using a 'Grid form' with row and columns marked.
I highly recommend looking at the book 'Python and Tkinter Programming' by John Grayson. This is an old book,
and actually went out of print, but it is so full of extremely valuable information that a new printing has been done.
(publisher Manning)
You can get a used version on amazon very inexpensively, and most if not all is on line, albeit copyright issues may apply.
Page 87 shows the perfect GUI layout form.
I was just playing around with this a little. You're grid rows and columns are too confusing.
Do you have a drawing showing row and column layout of each window?
It would be very helpful.
to fill a frame, use
yourwidget.grid(..., sticky='nsew', ...)in order to place your widgets properly, it's real important to know exactly how many columns you are going to use,
and to set the columns correctly. Also, it's good to use an odd number so you need to center.
It's next to impossible to get it right if you don't draw it out first using a 'Grid form' with row and columns marked.
I highly recommend looking at the book 'Python and Tkinter Programming' by John Grayson. This is an old book,
and actually went out of print, but it is so full of extremely valuable information that a new printing has been done.
(publisher Manning)
You can get a used version on amazon very inexpensively, and most if not all is on line, albeit copyright issues may apply.
Page 87 shows the perfect GUI layout form.
I was just playing around with this a little. You're grid rows and columns are too confusing.
Do you have a drawing showing row and column layout of each window?
It would be very helpful.