From 080c258d1542aaace093bca74225297b30453f77 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:02:28 +0100 Subject: [PATCH] fix: changed exec_ to exec for all apps --- bec_widgets/display_ui_file.py | 2 +- bec_widgets/examples/eiger_plot/eiger_plot.py | 4 ++-- bec_widgets/examples/extreme/extreme.py | 2 +- bec_widgets/examples/mca_readout/mca_plot.py | 2 +- bec_widgets/examples/modular_app/modular_app.py | 2 +- bec_widgets/examples/motor_movement/motor_example.py | 4 ++-- bec_widgets/examples/oneplot/oneplot.py | 2 +- bec_widgets/examples/plotting/crosshair_example.py | 2 +- bec_widgets/examples/stream_plot/stream_plot.py | 2 +- bec_widgets/scan2d_plot.py | 2 +- bec_widgets/scan_plot.py | 2 +- bec_widgets/widgets/monitor/config_dialog.py | 2 +- bec_widgets/widgets/monitor/monitor.py | 2 +- bec_widgets/widgets/scan_control/scan_control.py | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bec_widgets/display_ui_file.py b/bec_widgets/display_ui_file.py index 527bcdf7..1717c957 100644 --- a/bec_widgets/display_ui_file.py +++ b/bec_widgets/display_ui_file.py @@ -26,7 +26,7 @@ def main(): UI(sys.argv[1]) - sys.exit(app.exec_()) + sys.exit(app.exec()) if __name__ == "__main__": diff --git a/bec_widgets/examples/eiger_plot/eiger_plot.py b/bec_widgets/examples/eiger_plot/eiger_plot.py index c51ab685..1cbc7bd6 100644 --- a/bec_widgets/examples/eiger_plot/eiger_plot.py +++ b/bec_widgets/examples/eiger_plot/eiger_plot.py @@ -257,7 +257,7 @@ class EigerPlot(QWidget): ) dialog.setLayout(layout) - dialog.exec_() + dialog.exec() ############################### # just simulations from here @@ -295,4 +295,4 @@ if __name__ == "__main__": app = QApplication(sys.argv) plot = EigerPlot() plot.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/bec_widgets/examples/extreme/extreme.py b/bec_widgets/examples/extreme/extreme.py index 297113ac..8b0fb29c 100644 --- a/bec_widgets/examples/extreme/extreme.py +++ b/bec_widgets/examples/extreme/extreme.py @@ -727,4 +727,4 @@ if __name__ == "__main__": window = plotApp window.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/mca_readout/mca_plot.py b/bec_widgets/examples/mca_readout/mca_plot.py index 1b0ad090..96baaeeb 100644 --- a/bec_widgets/examples/mca_readout/mca_plot.py +++ b/bec_widgets/examples/mca_readout/mca_plot.py @@ -158,4 +158,4 @@ if __name__ == "__main__": streamApp = StreamApp(device=args.device, sub_device=args.sub_device) streamApp.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/modular_app/modular_app.py b/bec_widgets/examples/modular_app/modular_app.py index 2e83d504..7ce48bbe 100644 --- a/bec_widgets/examples/modular_app/modular_app.py +++ b/bec_widgets/examples/modular_app/modular_app.py @@ -208,4 +208,4 @@ if __name__ == "__main__": window = modularApp window.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/motor_movement/motor_example.py b/bec_widgets/examples/motor_movement/motor_example.py index 3b7fdd20..bc46bc88 100644 --- a/bec_widgets/examples/motor_movement/motor_example.py +++ b/bec_widgets/examples/motor_movement/motor_example.py @@ -1081,7 +1081,7 @@ class MotorApp(QWidget): layout.addWidget(ok_button) dialog.setLayout(layout) - dialog.exec_() + dialog.exec() @staticmethod def param_changed(ui_element): @@ -1348,4 +1348,4 @@ if __name__ == "__main__": MotorApp = MotorApp(selected_motors=selected_motors, plot_motors=plot_motors) window = MotorApp window.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/oneplot/oneplot.py b/bec_widgets/examples/oneplot/oneplot.py index 442b8abf..81053d97 100644 --- a/bec_widgets/examples/oneplot/oneplot.py +++ b/bec_widgets/examples/oneplot/oneplot.py @@ -268,4 +268,4 @@ if __name__ == "__main__": window = plotApp window.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/plotting/crosshair_example.py b/bec_widgets/examples/plotting/crosshair_example.py index 77373fbf..da31a879 100644 --- a/bec_widgets/examples/plotting/crosshair_example.py +++ b/bec_widgets/examples/plotting/crosshair_example.py @@ -165,4 +165,4 @@ if __name__ == "__main__": app = QApplication([]) window = ExampleApp() window.show() - app.exec_() + app.exec() diff --git a/bec_widgets/examples/stream_plot/stream_plot.py b/bec_widgets/examples/stream_plot/stream_plot.py index 08308676..3a27f358 100644 --- a/bec_widgets/examples/stream_plot/stream_plot.py +++ b/bec_widgets/examples/stream_plot/stream_plot.py @@ -328,4 +328,4 @@ if __name__ == "__main__": ) plot.show() # client.callbacks.register("scan_segment", plot, sync=False) - app.exec_() + app.exec() diff --git a/bec_widgets/scan2d_plot.py b/bec_widgets/scan2d_plot.py index 50657c63..b6065a55 100644 --- a/bec_widgets/scan2d_plot.py +++ b/bec_widgets/scan2d_plot.py @@ -149,4 +149,4 @@ if __name__ == "__main__": plot.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/bec_widgets/scan_plot.py b/bec_widgets/scan_plot.py index c15f130f..94eccf59 100644 --- a/bec_widgets/scan_plot.py +++ b/bec_widgets/scan_plot.py @@ -148,4 +148,4 @@ if __name__ == "__main__": plot.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/bec_widgets/widgets/monitor/config_dialog.py b/bec_widgets/widgets/monitor/config_dialog.py index 0edf9205..51063b65 100644 --- a/bec_widgets/widgets/monitor/config_dialog.py +++ b/bec_widgets/widgets/monitor/config_dialog.py @@ -507,4 +507,4 @@ if __name__ == "__main__": # pragma: no cover app = QApplication([]) main_app = ConfigDialog() main_app.show() - app.exec_() + app.exec() diff --git a/bec_widgets/widgets/monitor/monitor.py b/bec_widgets/widgets/monitor/monitor.py index 29ff6190..b311dcec 100644 --- a/bec_widgets/widgets/monitor/monitor.py +++ b/bec_widgets/widgets/monitor/monitor.py @@ -473,4 +473,4 @@ if __name__ == "__main__": # pragma: no cover app = QApplication(sys.argv) monitor = BECMonitor(config=config_simple) monitor.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) diff --git a/bec_widgets/widgets/scan_control/scan_control.py b/bec_widgets/widgets/scan_control/scan_control.py index dd30bcac..a445ed37 100644 --- a/bec_widgets/widgets/scan_control/scan_control.py +++ b/bec_widgets/widgets/scan_control/scan_control.py @@ -438,4 +438,4 @@ if __name__ == "__main__": # pragma: no cover window = scan_control window.show() - app.exec_() + app.exec()