aboutsummaryrefslogtreecommitdiffstats
path: root/examples/external/matplotlib
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2024-12-20 08:35:46 +0100
committerFriedemann Kleint <[email protected]>2025-01-06 15:44:37 +0100
commit76337a15b48ae189ee244fe1475a6203d396eeae (patch)
tree6aa736fd136b419fe9c3a6078295efb0d25de0fa /examples/external/matplotlib
parent2156c0be5308ee9a8624769f6e949ce97df4be79 (diff)
Use fully qualified enumerations in more examples, round 2
Complements 7189a4c5ec193d30c6bd4e68701038880cbc5982. Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ifbfd48e953e74c18c02fbe075ad51dfeb56b97c9 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'examples/external/matplotlib')
-rw-r--r--examples/external/matplotlib/widget3d/widget3d.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/external/matplotlib/widget3d/widget3d.py b/examples/external/matplotlib/widget3d/widget3d.py
index 591259527..0da07b403 100644
--- a/examples/external/matplotlib/widget3d/widget3d.py
+++ b/examples/external/matplotlib/widget3d/widget3d.py
@@ -37,7 +37,8 @@ class ApplicationWindow(QMainWindow):
self.menu_file.addAction(exit)
self.menu_about = self.menu.addMenu("&About")
- about = QAction("About Qt", self, shortcut=QKeySequence(QKeySequence.HelpContents),
+ about = QAction("About Qt", self,
+ shortcut=QKeySequence(QKeySequence.StandardKey.HelpContents),
triggered=qApp.aboutQt) # noqa: F821
self.menu_about.addAction(about)
@@ -64,7 +65,7 @@ class ApplicationWindow(QMainWindow):
# Table (Right)
self.table = QTableWidget()
header = self.table.horizontalHeader()
- header.setSectionResizeMode(QHeaderView.Stretch)
+ header.setSectionResizeMode(QHeaderView.ResizeMode.Stretch)
# ComboBox (Right)
self.combo = QComboBox()