aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgetsgallery/widgetgallery.py
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2024-09-18 07:36:20 +0200
committerFriedemann Kleint <[email protected]>2024-09-18 08:28:04 +0200
commite4199ec3881d8e556385af98084856be857e0dbe (patch)
tree77b264f5a21cff9f131a6b27e3b5142745faf91f /examples/widgets/widgetsgallery/widgetgallery.py
parentf48433db9a5be32c0b401c1d5203853abbff6c32 (diff)
type hints: Fix some typing bugs for mypy (forgiveness)
The new enums still support old syntax by the forgiveness mode. Nevertheless, when using mypy to check files, strict correctness is enforced. We correct a large number of forgiveness-induced errors, but there is still a whole lot of other complaints to fix. Task-number: PYSIDE-2846 Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9 Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/widgets/widgetsgallery/widgetgallery.py')
-rw-r--r--examples/widgets/widgetsgallery/widgetgallery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/widgetsgallery/widgetgallery.py b/examples/widgets/widgetsgallery/widgetgallery.py
index 75e6d4245..7a238b443 100644
--- a/examples/widgets/widgetsgallery/widgetgallery.py
+++ b/examples/widgets/widgetsgallery/widgetgallery.py
@@ -356,12 +356,12 @@ class WidgetGallery(QDialog):
slider = QSlider()
init_widget(slider, "slider")
- slider.setOrientation(Qt.Horizontal)
+ slider.setOrientation(Qt.Orientation.Horizontal)
slider.setValue(40)
scrollbar = QScrollBar()
init_widget(scrollbar, "scrollBar")
- scrollbar.setOrientation(Qt.Horizontal)
+ scrollbar.setOrientation(Qt.Orientation.Horizontal)
scrollbar.setValue(60)
dial = QDial()