diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-30 17:49:36 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-06 12:41:51 +0200 |
commit | d13e18612244863d109a95ce945036b7af4da70c (patch) | |
tree | a8eb416bfd9a587de20e421b0927ce3b73386752 /examples/opengl/textures/textures.py | |
parent | 661f21d976842c23c4a97cc63576680669945970 (diff) |
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 57e681930f6b4c7c311fc70a66317ef64dee4cb1)
Diffstat (limited to 'examples/opengl/textures/textures.py')
-rw-r--r-- | examples/opengl/textures/textures.py | 4 |
1 files changed, 2 insertions, 2 deletions
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()) |