aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/contextinfo/contextinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/contextinfo/contextinfo.py')
-rw-r--r--examples/opengl/contextinfo/contextinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/contextinfo/contextinfo.py b/examples/opengl/contextinfo/contextinfo.py
index 8a1fb3e3d..d115637c5 100644
--- a/examples/opengl/contextinfo/contextinfo.py
+++ b/examples/opengl/contextinfo/contextinfo.py
@@ -118,7 +118,7 @@ def print_surface_format(surface_format):
class RenderWindow(QWindow):
def __init__(self, format):
- super(RenderWindow, self).__init__()
+ super().__init__()
self.setSurfaceType(QWindow.OpenGLSurface)
self.setFormat(format)
self.context = QOpenGLContext(self)
@@ -249,7 +249,7 @@ class RenderWindow(QWindow):
class MainWindow(QWidget):
def __init__(self):
- super(MainWindow, self).__init__()
+ super().__init__()
h_box_layout = QHBoxLayout(self)
self._plain_text_edit = QPlainTextEdit()
self._plain_text_edit.setMinimumWidth(400)