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:
commit
80bbda30dc
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user