Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyes committed May 28, 2020
1 parent 792a120 commit 337140e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/02 PyQt Widgets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def changePalette(self):
def advanceProgressBar(self):
curVal = self.progressBar.value()
maxVal = self.progressBar.maximum()
self.progressBar.setValue(curVal + (maxVal - curVal) / 100)
self.progressBar.setValue(curVal + (maxVal - curVal) // 100)

def createTopLeftGroupBox(self):
self.topLeftGroupBox = QGroupBox("Group 1")
Expand Down

0 comments on commit 337140e

Please sign in to comment.