From 2945202e728399ef709dda4adce234e502d5c518 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 31 May 2021 19:48:52 -0400 Subject: [PATCH] Changed gauge update --- DemoPrograms/Demo_Desktop_Widget_Count_To_A_Goal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DemoPrograms/Demo_Desktop_Widget_Count_To_A_Goal.py b/DemoPrograms/Demo_Desktop_Widget_Count_To_A_Goal.py index 4cff2f25..f53b2d94 100644 --- a/DemoPrograms/Demo_Desktop_Widget_Count_To_A_Goal.py +++ b/DemoPrograms/Demo_Desktop_Widget_Count_To_A_Goal.py @@ -360,10 +360,10 @@ def main(): window['-GOAL-'].update(current_goal) while True: # Event Loop - if window.gauge.change(): - new_angle = current_count / current_goal * 180 - window.gauge.change(degree=new_angle, step=180) - window.gauge.change() + window.gauge.change() + new_angle = current_count / current_goal * 180 + window.gauge.change(degree=new_angle, step=180) + window.gauge.change() window['-GOAL-'].update(current_goal) window['-MAIN INFO-'].update(current_count)