docs/cookbook.md updated from https://stackedit.io/

This commit is contained in:
MikeTheWatchGuy 2019-04-01 17:22:57 -04:00
parent 3369de9d17
commit 6ac1698037
1 changed files with 7 additions and 8 deletions

View File

@ -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.
<!--stackedit_data:
eyJoaXN0b3J5IjpbLTE4MDM0ODM5MjAsLTEzNTc5NjUyNTUsLT
k0Mjc2ODgzNywtMzUwNzA2ODE4LC0xOTgzMjAzNjMwLC0xMDAw
Mjc2OTU0LC0xNDAyODQwOTg2LDY2ODc4OTc0OSwtMTE3NDc5OT
g5Miw3MTcwNDk2NjAsLTY3OTU0OTY3NSwtMzM5MzcxMzUyXX0=
eyJoaXN0b3J5IjpbNDUyMDQ4NzY2LC0xMzU3OTY1MjU1LC05ND
I3Njg4MzcsLTM1MDcwNjgxOCwtMTk4MzIwMzYzMCwtMTAwMDI3
Njk1NCwtMTQwMjg0MDk4Niw2Njg3ODk3NDksLTExNzQ3OTk4OT
IsNzE3MDQ5NjYwLC02Nzk1NDk2NzUsLTMzOTM3MTM1Ml19
-->