Added correct sizing to ComboBoxes - how height matches user requested height

This commit is contained in:
MikeTheWatchGuy 2018-09-08 01:12:43 -04:00
parent 96f7bfce45
commit 8712c09e08
2 changed files with 8 additions and 4 deletions

View file

@ -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: