diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-17 18:09:48 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-17 18:31:12 +0000 |
commit | 558c8d9d1eccdc55bf130da79fd8431bd3c59554 (patch) | |
tree | b5b282a08c397e6fc657c82ac05efddd01715ca8 /sources/pyside6/doc/tutorials/basictutorial/uifiles.rst | |
parent | 8e4558d261991d539ddcd929f3d8bd9a37713c62 (diff) |
Purge remaining app.exec_()
Add a porting note.
Change-Id: I4ccb1dc2a3a5925e55e94e7f3d23b1fb199afe4a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit ecae80eefce191aae2ee11b6fdf71ed3d48f0b83)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial/uifiles.rst')
-rw-r--r-- | sources/pyside6/doc/tutorials/basictutorial/uifiles.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst b/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst index fa483a302..579fc5ebb 100644 --- a/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst +++ b/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst @@ -112,7 +112,7 @@ To understand the idea, let's take a look at the whole code: window = MainWindow() window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) What is inside the *if* statement is already known from the previous examples, and our new basic class contains only two new lines @@ -177,7 +177,7 @@ The complete code of this example looks like this: sys.exit(-1) window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) Then to execute it we just need to run the following on a command prompt: |