aboutsummaryrefslogtreecommitdiffstats
path: root/examples/3d
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-28 10:39:36 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-28 12:08:29 +0200
commit1ec4d298984d90672354e7864e35af4100285525 (patch)
treebba17fc66bef715f50d042c40e37e2707b7e5c8a /examples/3d
parent29edb488705c1498f67ff7c1958b27d617136da0 (diff)
Examples: Use new form of super()
Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/3d')
-rw-r--r--examples/3d/simple3d/simple3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/3d/simple3d/simple3d.py b/examples/3d/simple3d/simple3d.py
index 3c6ff3bf6..ab6dc0ca0 100644
--- a/examples/3d/simple3d/simple3d.py
+++ b/examples/3d/simple3d/simple3d.py
@@ -49,7 +49,7 @@ from PySide6.Qt3DExtras import (Qt3DExtras)
class OrbitTransformController(QObject):
def __init__(self, parent):
- super(OrbitTransformController, self).__init__(parent)
+ super().__init__(parent)
self._target = None
self._matrix = QMatrix4x4()
self._radius = 1
@@ -93,7 +93,7 @@ class OrbitTransformController(QObject):
class Window(Qt3DExtras.Qt3DWindow):
def __init__(self):
- super(Window, self).__init__()
+ super().__init__()
# Camera
self.camera().lens().setPerspectiveProjection(45, 16 / 9, 0.1, 1000)