Merge pull request #4350 from PySimpleGUI/Dev-latest

Changed gauge update
This commit is contained in:
PySimpleGUI 2021-05-31 19:49:08 -04:00 committed by GitHub
commit 9ddfcb5223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -360,7 +360,7 @@ def main():
window['-GOAL-'].update(current_goal)
while True: # Event Loop
if window.gauge.change():
window.gauge.change()
new_angle = current_count / current_goal * 180
window.gauge.change(degree=new_angle, step=180)
window.gauge.change()