Changed gauge update
This commit is contained in:
parent
7cf15a8e6b
commit
2945202e72
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue