[sg.Multiline('Demo of a Multi-Line Text Element!\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6\nLine 7\nYou get the point.',size=(45,5),expand_x=True,expand_y=True,k='-MLINE-')],
[sg.Text('Demo Of (Almost) All Elements',size=(38,1),justification='center',font=("Helvetica",16),relief=sg.RELIEF_RIDGE,k='-TEXT HEADING-',enable_events=True)]]
window=sg.Window('All Elements Demo',layout,right_click_menu=right_click_menu_def,right_click_menu_tearoff=True,grab_anywhere=True,resizable=True,margins=(0,0),use_custom_titlebar=True,finalize=True,keep_on_top=True)
window=sg.Window(
"All Elements Demo",
layout,
right_click_menu=right_click_menu_def,
right_click_menu_tearoff=True,
grab_anywhere=True,
resizable=True,
margins=(0,0),
use_custom_titlebar=True,
finalize=True,
keep_on_top=True,
)
window.set_min_size(window.size)
returnwindow
defmain():
window=make_window(sg.theme())
# This is an Event Loop
# This is an Event Loop
whileTrue:
event,values=window.read(timeout=100)
# keep an animation running so show things are happening