Added correct sizing to ComboBoxes - how height matches user requested height
This commit is contained in:
parent
96f7bfce45
commit
8712c09e08
2 changed files with 8 additions and 4 deletions
|
@ -14,10 +14,11 @@ def TableSimulation():
|
|||
|
||||
for i in range(20):
|
||||
inputs = [sg.In('{}{}'.format(i,j), size=(8, 1), pad=(1, 1), justification='right', key=(i,j), do_not_clear=True) for j in range(10)]
|
||||
inputs = [sg.Combo(('Customer ID', 'Customer Name', 'Customer Info')), *inputs]
|
||||
line = [sg.Combo(('Customer ID', 'Customer Name', 'Customer Info'))]
|
||||
line.append(inputs)
|
||||
layout.append(inputs)
|
||||
|
||||
form = sg.FlexForm('Table', return_keyboard_events=True)
|
||||
form = sg.FlexForm('Table', return_keyboard_events=True, grab_anywhere=False)
|
||||
form.Layout(layout)
|
||||
|
||||
while True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue