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)