aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <[email protected]>2021-04-30 17:49:36 +0200
committerCristian Maureira-Fredes <[email protected]>2021-05-05 20:44:49 +0200
commit57e681930f6b4c7c311fc70a66317ef64dee4cb1 (patch)
treebb74a1c956c54be258ccb79eb2e13fdb82107301 /examples/opengl/hellogl2
parent36431b071095b8999347df87621bf23ffcc2ac3d (diff)
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/opengl/hellogl2')
-rw-r--r--examples/opengl/hellogl2/hellogl2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/hellogl2/hellogl2.py b/examples/opengl/hellogl2/hellogl2.py
index a4ef3314e..6dfc032ad 100644
--- a/examples/opengl/hellogl2/hellogl2.py
+++ b/examples/opengl/hellogl2/hellogl2.py
@@ -66,7 +66,7 @@ except ImportError:
"PyOpenGL must be installed to run this example.",
QMessageBox.Close)
message_box.setDetailedText("Run:\npip install PyOpenGL PyOpenGL_accelerate")
- message_box.exec_()
+ message_box.exec()
sys.exit(1)
@@ -485,5 +485,5 @@ if __name__ == '__main__':
main_window.resize(main_window.sizeHint())
main_window.show()
- res = app.exec_()
+ res = app.exec()
sys.exit(res)