2
0
mirror of https://github.com/pyqt/examples.git synced 2025-08-29 12:57:41 +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
commit 80bbda30dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")