Skip to content

Commit

Permalink
Merge pull request #112 from dihm/QT_deprecation
Browse files Browse the repository at this point in the history
Coerce float to int explicitly.
  • Loading branch information
dihm authored Jan 19, 2024
2 parents 9402ca7 + 94e341e commit d70dbb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lyse/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ def paint(self, painter, option, index):
progress_bar_option.textVisible = True

# Set the progress and text values of the style option.
progress_bar_option.progress = status_percent
progress_bar_option.progress = int(status_percent)
progress_bar_option.text = '%d%%' % status_percent

# Draw the progress bar onto the view.
Expand Down

0 comments on commit d70dbb3

Please sign in to comment.