Skip to content

Commit ca9117f

Browse files
docs/cookbook.md updated from https://stackedit.io/
1 parent e5eb745 commit ca9117f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/cookbook.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ Some of the more advanced programs operate with the window remaining visible on
6868

6969
This code will present a window and will print values until the user clicks the exit button or closes window using an X.
7070

71-
Note the `do_not_clear` parameter that is described in the next design pattern.
7271
7372
```python
7473
import PySimpleGUI as sg
7574

7675
layout = [[sg.Text('Persistent window')],
77-
[sg.Input(do_not_clear=True)],
76+
[sg.Input()],
7877
[sg.Button('Read'), sg.Exit()]]
7978

8079
window = sg.Window('Window that stays open').Layout(layout)
@@ -98,7 +97,7 @@ This is a slightly more complex, but maybe more realistic version that reads inp
9897

9998
Do not worry yet what all of these statements mean. Just copy it so you can begin to play with it, make some changes. Experiment to see how thing work.
10099

101-
A final note... the parameter `do_not_clear` in the input call determines the action of the input field after a button event. If this value is True, the input value remains visible following button clicks. If False, then the input field is CLEARED of whatever was input. If you are building a "Form" type of window with data entry, you likely want False, the default setting (you can remove the parameter completely).
100+
A final note... the parameter `do_not_clear` in the input call determines the action of the input field after a button event. If this value is True, the input value remains visible following button clicks. If False, then the input field is CLEARED of whatever was input. The default is True, which means
102101

103102
```python
104103
import sys
@@ -1551,8 +1550,9 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo
15511550

15521551
Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar.
15531552
<!--stackedit_data:
1554-
eyJoaXN0b3J5IjpbLTEzNTc5NjUyNTUsLTk0Mjc2ODgzNywtMz
1555-
UwNzA2ODE4LC0xOTgzMjAzNjMwLC0xMDAwMjc2OTU0LC0xNDAy
1556-
ODQwOTg2LDY2ODc4OTc0OSwtMTE3NDc5OTg5Miw3MTcwNDk2Nj
1557-
AsLTY3OTU0OTY3NSwtMzM5MzcxMzUyXX0=
1553+
eyJoaXN0b3J5IjpbMTA4ODMxNDE1NCwtMTM1Nzk2NTI1NSwtOT
1554+
QyNzY4ODM3LC0zNTA3MDY4MTgsLTE5ODMyMDM2MzAsLTEwMDAy
1555+
NzY5NTQsLTE0MDI4NDA5ODYsNjY4Nzg5NzQ5LC0xMTc0Nzk5OD
1556+
kyLDcxNzA0OTY2MCwtNjc5NTQ5Njc1LC0zMzkzNzEzNTJdfQ==
1557+
15581558
-->

0 commit comments

Comments
 (0)