diff --git a/src/02 PyQt Widgets/main.py b/src/02 PyQt Widgets/main.py index 1106806..825b713 100644 --- a/src/02 PyQt Widgets/main.py +++ b/src/02 PyQt Widgets/main.py @@ -116,7 +116,7 @@ class WidgetGallery(QDialog): 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")