mirror of
https://github.com/pyqt/examples.git
synced 2025-08-30 05:17:40 +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):
|
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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user