Removed the css variable.

This commit is contained in:
PySimpleGUI 2019-12-25 09:55:22 -05:00
parent 3a6b7c5ed8
commit 5aeead54a6
1 changed files with 3 additions and 4 deletions

View File

@ -7,11 +7,10 @@ import PySimpleGUI as sg
sg.theme('BlueMono')
css = {'text_color': 'white', 'background_color': 'blue'}
# Column layout
col = [[sg.Text('col Row 1', **css)],
[sg.Text('col Row 2', **css), sg.Input('col input 1')],
[sg.Text('col Row 3', **css), sg.Input('col input 2')]]
col = [[sg.Text('col Row 1', text_color='white', background_color='blue')],
[sg.Text('col Row 2', text_color='white', background_color='blue'), sg.Input('col input 1')],
[sg.Text('col Row 3', text_color='white', background_color='blue'), sg.Input('col input 2')]]
# Window layout
layout = [[sg.Listbox(values=('Listbox Item 1', 'Listbox Item 2', 'Listbox Item 3'),
select_mode=sg.LISTBOX_SELECT_MODE_MULTIPLE, size=(20, 3)),