diff --git a/docs/cookbook.md b/docs/cookbook.md index e79d488e..1d28c70f 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -809,7 +809,7 @@ import PySimpleGUI as sg # Design pattern 1 - First window does not remain active layout = [[ sg.Text('Window 1'),], - [sg.Input(d)], + [sg.Input()], [sg.Text('', key='_OUTPUT_')], [sg.Button('Launch 2')]] @@ -940,10 +940,10 @@ There are a number of features used in this Recipe including: # Button # Dictionary return values # Update of elements in window (Text, Input) - # do_not_clear of Input elements + layout = [[sg.Text('Enter Your Passcode')], - [sg.Input(size=(10, 1), do_not_clear=True, justification='right', key='input')], + [sg.Input(size=(10, 1), justification='right', key='input')], [sg.Button('1'), sg.Button('2'), sg.Button('3')], [sg.Button('4'), sg.Button('5'), sg.Button('6')], [sg.Button('7'), sg.Button('8'), sg.Button('9')], @@ -1550,9 +1550,8 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar. \ No newline at end of file