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/corelib/settingseditor/settingseditor.py | 4 ++-- examples/corelib/threads/mandelbrot.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/corelib') diff --git a/examples/corelib/settingseditor/settingseditor.py b/examples/corelib/settingseditor/settingseditor.py index 196bcc10c..2c6a0703b 100644 --- a/examples/corelib/settingseditor/settingseditor.py +++ b/examples/corelib/settingseditor/settingseditor.py @@ -187,7 +187,7 @@ class MainWindow(QMainWindow): if self.location_dialog is None: self.location_dialog = LocationDialog(self) - if self.location_dialog.exec_(): + if self.location_dialog.exec(): settings = QSettings(self.location_dialog.format(), self.location_dialog.scope(), self.location_dialog.organization(), @@ -784,4 +784,4 @@ if __name__ == '__main__': if len(sys.argv) > 1: main_win.load_ini_file(sys.argv[1]) main_win.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/examples/corelib/threads/mandelbrot.py b/examples/corelib/threads/mandelbrot.py index e47a1f4eb..2e45afadc 100644 --- a/examples/corelib/threads/mandelbrot.py +++ b/examples/corelib/threads/mandelbrot.py @@ -384,6 +384,6 @@ if __name__ == '__main__': widget.move(geometry.topLeft() + QPoint(pos.width(), pos.height())) widget.show() - r = app.exec_() + r = app.exec() widget.thread.stop() sys.exit(r) -- cgit v1.2.3