0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

fix: changed exec_ to exec for all apps

This commit is contained in:
wyzula-jan
2023-12-06 16:02:28 +01:00
parent 5adde23a45
commit 080c258d15
14 changed files with 16 additions and 16 deletions

View File

@ -26,7 +26,7 @@ def main():
UI(sys.argv[1]) UI(sys.argv[1])
sys.exit(app.exec_()) sys.exit(app.exec())
if __name__ == "__main__": if __name__ == "__main__":

View File

@ -257,7 +257,7 @@ class EigerPlot(QWidget):
) )
dialog.setLayout(layout) dialog.setLayout(layout)
dialog.exec_() dialog.exec()
############################### ###############################
# just simulations from here # just simulations from here
@ -295,4 +295,4 @@ if __name__ == "__main__":
app = QApplication(sys.argv) app = QApplication(sys.argv)
plot = EigerPlot() plot = EigerPlot()
plot.show() plot.show()
sys.exit(app.exec_()) sys.exit(app.exec())

View File

@ -727,4 +727,4 @@ if __name__ == "__main__":
window = plotApp window = plotApp
window.show() window.show()
app.exec_() app.exec()

View File

@ -158,4 +158,4 @@ if __name__ == "__main__":
streamApp = StreamApp(device=args.device, sub_device=args.sub_device) streamApp = StreamApp(device=args.device, sub_device=args.sub_device)
streamApp.show() streamApp.show()
app.exec_() app.exec()

View File

@ -208,4 +208,4 @@ if __name__ == "__main__":
window = modularApp window = modularApp
window.show() window.show()
app.exec_() app.exec()

View File

@ -1081,7 +1081,7 @@ class MotorApp(QWidget):
layout.addWidget(ok_button) layout.addWidget(ok_button)
dialog.setLayout(layout) dialog.setLayout(layout)
dialog.exec_() dialog.exec()
@staticmethod @staticmethod
def param_changed(ui_element): def param_changed(ui_element):
@ -1348,4 +1348,4 @@ if __name__ == "__main__":
MotorApp = MotorApp(selected_motors=selected_motors, plot_motors=plot_motors) MotorApp = MotorApp(selected_motors=selected_motors, plot_motors=plot_motors)
window = MotorApp window = MotorApp
window.show() window.show()
app.exec_() app.exec()

View File

@ -268,4 +268,4 @@ if __name__ == "__main__":
window = plotApp window = plotApp
window.show() window.show()
app.exec_() app.exec()

View File

@ -165,4 +165,4 @@ if __name__ == "__main__":
app = QApplication([]) app = QApplication([])
window = ExampleApp() window = ExampleApp()
window.show() window.show()
app.exec_() app.exec()

View File

@ -328,4 +328,4 @@ if __name__ == "__main__":
) )
plot.show() plot.show()
# client.callbacks.register("scan_segment", plot, sync=False) # client.callbacks.register("scan_segment", plot, sync=False)
app.exec_() app.exec()

View File

@ -149,4 +149,4 @@ if __name__ == "__main__":
plot.show() plot.show()
sys.exit(app.exec_()) sys.exit(app.exec())

View File

@ -148,4 +148,4 @@ if __name__ == "__main__":
plot.show() plot.show()
sys.exit(app.exec_()) sys.exit(app.exec())

View File

@ -507,4 +507,4 @@ if __name__ == "__main__": # pragma: no cover
app = QApplication([]) app = QApplication([])
main_app = ConfigDialog() main_app = ConfigDialog()
main_app.show() main_app.show()
app.exec_() app.exec()

View File

@ -473,4 +473,4 @@ if __name__ == "__main__": # pragma: no cover
app = QApplication(sys.argv) app = QApplication(sys.argv)
monitor = BECMonitor(config=config_simple) monitor = BECMonitor(config=config_simple)
monitor.show() monitor.show()
sys.exit(app.exec_()) sys.exit(app.exec())

View File

@ -438,4 +438,4 @@ if __name__ == "__main__": # pragma: no cover
window = scan_control window = scan_control
window.show() window.show()
app.exec_() app.exec()