From 57e681930f6b4c7c311fc70a66317ef64dee4cb1 Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Fri, 30 Apr 2021 17:49:36 +0200 Subject: examples: use exec() instead of exec_() Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint --- examples/opengl/contextinfo/contextinfo.py | 4 ++-- examples/opengl/hellogl2/hellogl2.py | 4 ++-- examples/opengl/textures/textures.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/opengl') diff --git a/examples/opengl/contextinfo/contextinfo.py b/examples/opengl/contextinfo/contextinfo.py index ed7b8ca72..5a64f168e 100644 --- a/examples/opengl/contextinfo/contextinfo.py +++ b/examples/opengl/contextinfo/contextinfo.py @@ -62,7 +62,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) vertex_shader_source_110 = dedent(""" @@ -289,4 +289,4 @@ if __name__ == '__main__': main_window = MainWindow() main_window.show() main_window.update_description() - sys.exit(app.exec_()) + sys.exit(app.exec()) 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) diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py index e7362da1e..521c099b3 100644 --- a/examples/opengl/textures/textures.py +++ b/examples/opengl/textures/textures.py @@ -53,7 +53,7 @@ except ImportError: "PyOpenGL must be installed to run this example.", QtWidgets.QMessageBox.Close) messageBox.setDetailedText("Run:\npip install PyOpenGL PyOpenGL_accelerate") - messageBox.exec_() + messageBox.exec() sys.exit(1) import textures_rc @@ -228,4 +228,4 @@ if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) window = Window() window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) -- cgit v1.2.3