2
0
mirror of https://github.com/pyqt/examples.git synced 2025-08-31 05:45:09 +00:00

Merge pull request #9 from snoyes/repairDivision

Fix deprecation warning
This commit is contained in:
Michael Herrmann
2020-05-29 08:18:10 +02:00
committed by GitHub

View File

@@ -116,7 +116,7 @@ class WidgetGallery(QDialog):
def advanceProgressBar(self): def advanceProgressBar(self):
curVal = self.progressBar.value() curVal = self.progressBar.value()
maxVal = self.progressBar.maximum() maxVal = self.progressBar.maximum()
self.progressBar.setValue(curVal + (maxVal - curVal) / 100) self.progressBar.setValue(curVal + (maxVal - curVal) // 100)
def createTopLeftGroupBox(self): def createTopLeftGroupBox(self):
self.topLeftGroupBox = QGroupBox("Group 1") self.topLeftGroupBox = QGroupBox("Group 1")