Closed RhetTbull closed 3 years ago
In this section of _layout (add autoframe to _layout args)
col_offset = 0
if autoframe and len(row) > 1:
row_ = Frame(layout=[row], other args)
else:
row_ = row
for col_count, widget in enumerate(row_):
The current implementation of guitk requires too much use of guitk.Frame() to make layouts work when there are different numbers of columns in each row. In PySimpleGUI, this “just works”.
Add an
autoframe=True
keyword arg to Window and Frame/LabelFrame that defaults to True. If True and there's more than one element in a row, will wrap each row in a Frame. There may be times user will want to adjust things manually so adding this as a kw arg allows it to be turned off if necessary.