diff --git a/b_asic/gui_utils/plot_window.py b/b_asic/gui_utils/plot_window.py index 96d6bda00e4697b08c62171d35e124ad1e689558..77babe1f7e732386b199581507e1ee88c50b5645 100644 --- a/b_asic/gui_utils/plot_window.py +++ b/b_asic/gui_utils/plot_window.py @@ -226,9 +226,10 @@ def start_simulation_dialog( sfg_name : str, optional The name of the SFG. """ - QApplication(sys.argv) + app = QApplication(sys.argv) win = PlotWindow(sim_result=sim_results, sfg_name=sfg_name) - win.exec_() + win.show() + sys.exit(app.exec_()) # Simple test of the dialog