MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / make_window

Function make_window

DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def make_window():
33
34 layout = [ [sg.Text('Add and "Delete" Rows From a Window', font='_ 15')],
35 [sg.Col([item_row(0)], k='-TRACKING SECTION-')],
36 [sg.pin(sg.Text(size=(35,1), font='_ 8', k='-REFRESHED-',))],
37 [sg.T(sg.SYMBOL_X, enable_events=True, k='Exit', tooltip='Exit Application'), sg.T('↻', enable_events=True, k='Refresh', tooltip='Save Changes & Refresh'), sg.T('+', enable_events=True, k='Add Item', tooltip='Add Another Item')]]
38
39 right_click_menu = [[''], ['Add Item', 'Edit Me', 'Version']]
40
41 window = sg.Window('Window Title', layout, right_click_menu=right_click_menu, use_default_focus=False, font='_ 15', metadata=0)
42
43 return window
44
45
46def main():

Callers 1

mainFunction · 0.70

Calls 1

item_rowFunction · 0.85

Tested by

no test coverage detected