Demo updates with new theme calls
This commit is contained in:
parent
52700b0780
commit
5484b047c0
96 changed files with 3530 additions and 228 deletions
|
@ -5,15 +5,16 @@ Example of (almost) all widgets, that you can use in PySimpleGUI.
|
|||
|
||||
import PySimpleGUI as sg
|
||||
|
||||
sg.change_look_and_feel('GreenTan')
|
||||
|
||||
# sg.theme('Dark Red')
|
||||
# sg.theme('Default1')
|
||||
# sg.set_options(text_color='black', background_color='#A6B2BE', text_element_background_color='#A6B2BE')
|
||||
# ------ Menu Definition ------ #
|
||||
menu_def = [['&File', ['&Open', '&Save', 'E&xit', 'Properties']],
|
||||
['&Edit', ['Paste', ['Special', 'Normal', ], 'Undo'], ],
|
||||
['&Help', '&About...'], ]
|
||||
|
||||
# ------ Column Definition ------ #
|
||||
column1 = [[sg.Text('Column 1', background_color='lightblue', justification='center', size=(10, 1))],
|
||||
column1 = [[sg.Text('Column 1', justification='center', size=(10, 1))],
|
||||
[sg.Spin(values=('Spin Box 1', '2', '3'),
|
||||
initial_value='Spin Box 1')],
|
||||
[sg.Spin(values=('Spin Box 1', '2', '3'),
|
||||
|
@ -30,13 +31,10 @@ layout = [
|
|||
[sg.CBox('Checkbox', size=(10, 1)),
|
||||
sg.CBox('My second checkbox!', default=True)],
|
||||
[sg.Radio('My first Radio! ', "RADIO1", default=True, size=(10, 1)),
|
||||
sg.Radio('My second Radio!', "RADIO1")]], title='Options',
|
||||
title_color='red',
|
||||
relief=sg.RELIEF_SUNKEN,
|
||||
tooltip='Use these to set flags')],
|
||||
sg.Radio('My second Radio!', "RADIO1")]], title='Options', relief=sg.RELIEF_SUNKEN, tooltip='Use these to set flags')],
|
||||
[sg.MLine(default_text='This is the default Text should you decide not to type anything', size=(35, 3)),
|
||||
sg.MLine(default_text='A second multi-line', size=(35, 3))],
|
||||
[sg.Combo(('Combobox 1', 'Combobox 2'), size=(20, 1)),
|
||||
[sg.Combo(('Combobox 1', 'Combobox 2'),default_value='Combobox 1', size=(20, 1)),
|
||||
sg.Slider(range=(1, 100), orientation='h', size=(34, 20), default_value=85)],
|
||||
[sg.OptionMenu(('Menu Option 1', 'Menu Option 2', 'Menu Option 3'))],
|
||||
[sg.Listbox(values=('Listbox 1', 'Listbox 2', 'Listbox 3'), size=(30, 3)),
|
||||
|
@ -44,7 +42,7 @@ layout = [
|
|||
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=25, tick_interval=25),
|
||||
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=75),
|
||||
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=10),
|
||||
sg.Col(column1, background_color='lightblue')]])
|
||||
sg.Col(column1)]])
|
||||
],
|
||||
[sg.Text('_' * 80)],
|
||||
[sg.Text('Choose A Folder', size=(35, 1))],
|
||||
|
@ -52,7 +50,7 @@ layout = [
|
|||
sg.InputText('Default Folder'), sg.FolderBrowse()],
|
||||
[sg.Submit(tooltip='Click to submit this form'), sg.Cancel()]]
|
||||
|
||||
window = sg.Window('Everything bagel', layout,
|
||||
window = sg.Window('Everything bagel', layout, no_titlebar=True,
|
||||
default_element_size=(40, 1), grab_anywhere=False)
|
||||
|
||||
event, values = window.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue