From fe4e39171a0c1655ddbcc8ac427f6c99c6fd0bd3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 14 Apr 2020 12:42:44 -0400 Subject: [PATCH] Slider default value set to 100 --- DemoPrograms/Demo_Conways_Game_of_Life.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Conways_Game_of_Life.py b/DemoPrograms/Demo_Conways_Game_of_Life.py index a382e4ab..115704f6 100644 --- a/DemoPrograms/Demo_Conways_Game_of_Life.py +++ b/DemoPrograms/Demo_Conways_Game_of_Life.py @@ -109,7 +109,7 @@ class GameOfLife: [self.graph], [sg.Button('Go!', key='-DONE-'), sg.Text(' Delay (ms)'), - sg.Slider([0, 800], + sg.Slider((0, 800), 100, orientation='h', key='-SLIDER-', enable_events=True, @@ -124,7 +124,7 @@ class GameOfLife: sg.Text('', size=(3, 1), key='-S2-OUT-')] ] - self.window = sg.Window('Window Title', layout, finalize=True) + self.window = sg.Window('John Conway\' Game of Life', layout, finalize=True) event, values = self.window.read(timeout=0) self.delay = values['-SLIDER-'] self.window['-S1-OUT-'].update(values['-SLIDER-'])