Make layout use +=

This commit is contained in:
MikeTheWatchGuy 2019-09-10 13:54:33 -04:00
parent 9288b02adb
commit 9602f8f7c4
1 changed files with 2 additions and 2 deletions

View File

@ -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()