From 337140e92285b894355eff94a91669706efa4adb Mon Sep 17 00:00:00 2001 From: Scott Noyes Date: Thu, 28 May 2020 16:21:33 -0500 Subject: [PATCH] Fix deprecation warning --- src/02 PyQt Widgets/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")