aboutsummaryrefslogtreecommitdiffstats
path: root/examples/corelib
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/corelib
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/corelib')
-rw-r--r--examples/corelib/settingseditor/settingseditor.py8
-rw-r--r--examples/corelib/threads/mandelbrot.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/corelib/settingseditor/settingseditor.py b/examples/corelib/settingseditor/settingseditor.py
index 10e79abf9..196bcc10c 100644
--- a/examples/corelib/settingseditor/settingseditor.py
+++ b/examples/corelib/settingseditor/settingseditor.py
@@ -167,7 +167,7 @@ class TypeChecker:
class MainWindow(QMainWindow):
def __init__(self, parent=None):
- super(MainWindow, self).__init__(parent)
+ super().__init__(parent)
self.settings_tree = SettingsTree()
self.setCentralWidget(self.settings_tree)
@@ -320,7 +320,7 @@ class MainWindow(QMainWindow):
class LocationDialog(QDialog):
def __init__(self, parent=None):
- super(LocationDialog, self).__init__(parent)
+ super().__init__(parent)
self.format_combo = QComboBox()
self.format_combo.addItem("Native")
@@ -472,7 +472,7 @@ class LocationDialog(QDialog):
class SettingsTree(QTreeWidget):
def __init__(self, parent=None):
- super(SettingsTree, self).__init__(parent)
+ super().__init__(parent)
self._type_checker = TypeChecker()
self.setItemDelegate(VariantDelegate(self._type_checker, self))
@@ -666,7 +666,7 @@ class SettingsTree(QTreeWidget):
class VariantDelegate(QItemDelegate):
def __init__(self, type_checker, parent=None):
- super(VariantDelegate, self).__init__(parent)
+ super().__init__(parent)
self._type_checker = type_checker
def paint(self, painter, option, index):
diff --git a/examples/corelib/threads/mandelbrot.py b/examples/corelib/threads/mandelbrot.py
index e184d6529..3c6a6af21 100644
--- a/examples/corelib/threads/mandelbrot.py
+++ b/examples/corelib/threads/mandelbrot.py
@@ -77,7 +77,7 @@ class RenderThread(QThread):
rendered_image = Signal(QImage, float)
def __init__(self, parent=None):
- super(RenderThread, self).__init__(parent)
+ super().__init__(parent)
self.mutex = QMutex()
self.condition = QWaitCondition()
@@ -234,7 +234,7 @@ class RenderThread(QThread):
class MandelbrotWidget(QWidget):
def __init__(self, parent=None):
- super(MandelbrotWidget, self).__init__(parent)
+ super().__init__(parent)
self.thread = RenderThread()
self.pixmap = QPixmap()