Merge pull request #4350 from PySimpleGUI/Dev-latest
Changed gauge update
This commit is contained in:
commit
9ddfcb5223
|
@ -360,10 +360,10 @@ def main():
|
||||||
window['-GOAL-'].update(current_goal)
|
window['-GOAL-'].update(current_goal)
|
||||||
|
|
||||||
while True: # Event Loop
|
while True: # Event Loop
|
||||||
if window.gauge.change():
|
window.gauge.change()
|
||||||
new_angle = current_count / current_goal * 180
|
new_angle = current_count / current_goal * 180
|
||||||
window.gauge.change(degree=new_angle, step=180)
|
window.gauge.change(degree=new_angle, step=180)
|
||||||
window.gauge.change()
|
window.gauge.change()
|
||||||
window['-GOAL-'].update(current_goal)
|
window['-GOAL-'].update(current_goal)
|
||||||
window['-MAIN INFO-'].update(current_count)
|
window['-MAIN INFO-'].update(current_count)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue