diff --git a/README.md b/README.md index 00253bf..1a85c2a 100644 --- a/README.md +++ b/README.md @@ -3428,7 +3428,7 @@ import PySimpleGUI as sg layout = [[sg.Text("What's your name?")], [sg.Input()], [sg.Button('Ok')]] window = sg.Window('Window Title', layout) event, values = window.read() -print(f'Hello {values[0]}!') +print(f'Hello {values[0]}!' if event == 'Ok' else '') ``` diff --git a/index.html b/index.html index 5a26870..af73af8 100644 --- a/index.html +++ b/index.html @@ -2913,7 +2913,7 @@ line(df, x='Date', y= layout = [[sg.Text("What's your name?")], [sg.Input()], [sg.Button('Ok')]] window = sg.Window('Window Title', layout) event, values = window.read() -print(f'Hello {values[0]}!') +print(f'Hello {values[0]}!' if event == 'Ok' else '')

#Appendix

Cython

Library that compiles Python code into C.

# $ pip3 install cython