Make layout use +=
This commit is contained in:
parent
9288b02adb
commit
9602f8f7c4
|
@ -238,8 +238,8 @@ Since we're storing our window's GUI layout in a Python list, that means we can
|
||||||
```python
|
```python
|
||||||
from PySimpleGUI import Text, CBox, Input, Button, Window
|
from PySimpleGUI import Text, CBox, Input, Button, Window
|
||||||
|
|
||||||
layout = [[Text(f'{i}. '), CBox(''), Input()] for i in range(1,6)] +\
|
layout = [[Text(f'{i}. '), CBox(''), Input()] for i in range(1,6)]
|
||||||
[[Button('Save'), Button('Exit')]]
|
layout += [[Button('Save'), Button('Exit')]]
|
||||||
|
|
||||||
window = Window('To Do List Example', layout)
|
window = Window('To Do List Example', layout)
|
||||||
event, values = window.read()
|
event, values = window.read()
|
||||||
|
|
Loading…
Reference in New Issue