Reputation: 31
I'm working with tkinter in Python and using grid, and when I put two widgets in different columns in one row and a widget spanning both columns in another row, then the columns' widths are both set to half the width of the widget spanning both rows. Is there any way I could get it to fit the columns to the two widgets?
The reason I want this is to get the left widget to fill all of the width of the spanning widget except for that taken up by the right widget, which should be a fixed width.
The code is like this:
spanningboth.grid(row=0, column=0, columnspan = 2)
infirstcol.grid(column=0, row=1, sticky='EW')
insecondcol.grid(column = 1, row = 1)
Upvotes: 0
Views: 418