diff options
Diffstat (limited to 'examples/widgets/tutorials/cannon/t14.py')
-rw-r--r-- | examples/widgets/tutorials/cannon/t14.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/tutorials/cannon/t14.py b/examples/widgets/tutorials/cannon/t14.py index 19fb95ac8..420eeaa08 100644 --- a/examples/widgets/tutorials/cannon/t14.py +++ b/examples/widgets/tutorials/cannon/t14.py @@ -96,9 +96,9 @@ class LCDRange(QtWidgets.QWidget): def setRange(self, minValue, maxValue): if minValue < 0 or maxValue > 99 or minValue > maxValue: - QtCore.qWarning("LCDRange::setRange(%d, %d)\n" + QtCore.qWarning(f"LCDRange::setRange({minValue}, {maxValue})\n" "\tRange must be 0..99\n" - "\tand minValue must not be greater than maxValue" % (minValue, maxValue)) + "\tand minValue must not be greater than maxValue") return self.slider.setRange(minValue, maxValue) |