Merge pull request #1952 from PySimpleGUI/Dev-latest

Make layout use +=
This commit is contained in:
PySimpleGUI 2019-09-10 13:54:57 -04:00 committed by GitHub
commit d200066180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
from PySimpleGUI import Text, CBox, Input, Button, Window
layout = [[Text(f'{i}. '), CBox(''), Input()] for i in range(1,6)] +\
[[Button('Save'), Button('Exit')]]
layout = [[Text(f'{i}. '), CBox(''), Input()] for i in range(1,6)]
layout += [[Button('Save'), Button('Exit')]]
window = Window('To Do List Example', layout)
event, values = window.read()