Skip to content

Commit

Permalink
Python 3.12 TypeError: convert progress to int for progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Aug 29, 2024
1 parent d6cb364 commit 11325a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pmg_qt/pymol_qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,9 @@ def command_set_cursor(self, i):
return self.lineedit.setCursorPosition(i)

def update_progress(self):
progress = self.cmd.get_progress()
progress = int(self.cmd.get_progress() * 100)
if progress >= 0:
self.progressbar.setValue(progress * 100)
self.progressbar.setValue(progress)
self.progressbar.show()
self.abortbutton.show()
else:
Expand Down

0 comments on commit 11325a6

Please sign in to comment.