Skip to content

Commit

Permalink
Merge pull request #2266 from dhomeier/splash-screen-values
Browse files Browse the repository at this point in the history
Fix Splash Screen Bug under Python  3.10: `QProgressBar.setValue` needs `int` argument
  • Loading branch information
astrofrog authored Feb 1, 2022
2 parents ab9b2b6 + 29e080d commit b13535d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue/app/qt/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, *args, **kwargs):
self.image = QtGui.QPixmap(pth)

def set_progress(self, value):
self.progress.setValue(value)
self.progress.setValue(int(value))
QtWidgets.QApplication.processEvents() # update progress bar

def paintEvent(self, event):
Expand Down

0 comments on commit b13535d

Please # to comment.