diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-17 18:09:48 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-17 18:30:21 +0200 |
| commit | ecae80eefce191aae2ee11b6fdf71ed3d48f0b83 (patch) | |
| tree | b65bc200a37d5a47bc453fdf755911dc4b5bd022 /sources/pyside6/doc/tutorials/portingguide | |
| parent | c4b077486f2f85ec15fa9f75b6a8e34ce976f180 (diff) | |
Purge remaining app.exec_()
Add a porting note.
Pick-to: 6.1
Change-Id: I4ccb1dc2a3a5925e55e94e7f3d23b1fb199afe4a
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/doc/tutorials/portingguide')
6 files changed, 6 insertions, 6 deletions
diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter1/main.py b/sources/pyside6/doc/tutorials/portingguide/chapter1/main.py index 5b42a61a1..c60ff6839 100644 --- a/sources/pyside6/doc/tutorials/portingguide/chapter1/main.py +++ b/sources/pyside6/doc/tutorials/portingguide/chapter1/main.py @@ -56,4 +56,4 @@ if __name__ == "__main__": table_view.setModel(model) table_view.resize(800, 600) table_view.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter2/main.py b/sources/pyside6/doc/tutorials/portingguide/chapter2/main.py index c9c907f90..cf023fb35 100644 --- a/sources/pyside6/doc/tutorials/portingguide/chapter2/main.py +++ b/sources/pyside6/doc/tutorials/portingguide/chapter2/main.py @@ -60,4 +60,4 @@ if __name__ == "__main__": table.resize(800, 600) table.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter3/main-old.py b/sources/pyside6/doc/tutorials/portingguide/chapter3/main-old.py index 675f8032b..edaf5cf60 100644 --- a/sources/pyside6/doc/tutorials/portingguide/chapter3/main-old.py +++ b/sources/pyside6/doc/tutorials/portingguide/chapter3/main-old.py @@ -49,4 +49,4 @@ if __name__ == "__main__": window.resize(800, 600) window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter3/main.py b/sources/pyside6/doc/tutorials/portingguide/chapter3/main.py index e957869ac..3994a66b4 100644 --- a/sources/pyside6/doc/tutorials/portingguide/chapter3/main.py +++ b/sources/pyside6/doc/tutorials/portingguide/chapter3/main.py @@ -50,4 +50,4 @@ if __name__ == "__main__": window.resize(800, 600) window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/doc/tutorials/portingguide/hello_world_ex.py b/sources/pyside6/doc/tutorials/portingguide/hello_world_ex.py index 81b63b7ea..f29cbd9ba 100644 --- a/sources/pyside6/doc/tutorials/portingguide/hello_world_ex.py +++ b/sources/pyside6/doc/tutorials/portingguide/hello_world_ex.py @@ -73,4 +73,4 @@ if __name__ == "__main__": widget.resize(800, 600) widget.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/sources/pyside6/doc/tutorials/portingguide/index.rst b/sources/pyside6/doc/tutorials/portingguide/index.rst index 12f76d3fc..bc7e6dee5 100644 --- a/sources/pyside6/doc/tutorials/portingguide/index.rst +++ b/sources/pyside6/doc/tutorials/portingguide/index.rst @@ -93,7 +93,7 @@ follow the guidelines outlined in the app = QApplication(sys.argv) label = QLabel("Hello World") label.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) .. note:: Qt provides classes that are meant to manage the application-specific requirements depending on |
