commit
36c41c2b15
|
@ -124,7 +124,7 @@ class GameOfLife:
|
||||||
sg.Text('', size=(3, 1), key='-S2-OUT-')]
|
sg.Text('', size=(3, 1), key='-S2-OUT-')]
|
||||||
]
|
]
|
||||||
|
|
||||||
self.window = sg.Window('John Conway\' Game of Life', layout, finalize=True)
|
self.window = sg.Window('John Conway\'s Game of Life', layout, finalize=True)
|
||||||
event, values = self.window.read(timeout=0)
|
event, values = self.window.read(timeout=0)
|
||||||
self.delay = values['-SLIDER-']
|
self.delay = values['-SLIDER-']
|
||||||
self.window['-S1-OUT-'].update(values['-SLIDER-'])
|
self.window['-S1-OUT-'].update(values['-SLIDER-'])
|
||||||
|
|
Loading…
Reference in New Issue