From f1dd299fad6e04edf3ee21910e8be123f70f9bf5 Mon Sep 17 00:00:00 2001 From: x01dc Date: Thu, 25 Sep 2025 16:42:40 +0200 Subject: [PATCH] gui tools running --- .../plugins/flomni/gui_tools.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py b/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py index aef6ca3..2093b5d 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py @@ -44,7 +44,7 @@ class flomniGuiTools: self.flomnigui_remove_all_docks() self.camera_gripper_image = self.gui.flomni.new("camera_gripper").new("Image") if self._flomnicam_check_device_exists(dev.cam_flomni_gripper): - self.camera_gripper_image.image(("cam_flomni_gripper","preview")) + self.camera_gripper_image.image(("cam_flomni_gripper", "preview")) self.camera_gripper_image.lock_aspect_ratio = True self.camera_gripper_image.enable_fps_monitor = True self.camera_gripper_image.enable_toolbar = False @@ -55,7 +55,7 @@ class flomniGuiTools: print("Cannot open camera_gripper. Device does not exist.") self.camera_overview_image = self.gui.flomni.new("camera_overview").new("Image") if self._flomnicam_check_device_exists(dev.cam_flomni_overview): - self.camera_overview_image.image(("cam_flomni_overview","preview")) + self.camera_overview_image.image(("cam_flomni_overview", "preview")) self.camera_overview_image.lock_aspect_ratio = True self.camera_overview_image.enable_fps_monitor = True self.camera_overview_image.enable_toolbar = False @@ -81,13 +81,13 @@ class flomniGuiTools: self.flomnigui_remove_all_docks() self.idle_text_box = self.gui.flomni.new("idle_textbox").new("TextBox") text = ( - "
"                                       
+            "
"
             + " ,---.,--. ,-----. ,--.   ,--.,--.  ,--.,--. \n"
             + "/  .-'|  |'  .-.  '|   `.'   ||  ,'.|  ||  | \n"
             + "|  `-,|  ||  | |  ||  |'.'|  ||  |' '  ||  | \n"
             + "|  .-'|  |'  '-'  '|  |   |  ||  | `   ||  | \n"
             + "`--'  `--' `-----' `--'   `--'`--'  `--'`--' \n"
-            + "
" + + "
" ) self.idle_text_box.set_html_text(text) @@ -137,16 +137,14 @@ class flomniGuiTools: self.text_box.set_plain_text(text) - if __name__ == "__main__": - from bec_lib.client import BECClient + from bec_lib.client import BECClient from bec_widgets.cli.client_utils import BECGuiClient + client = BECClient() client.start() client.gui = BECGuiClient() - - flomni_gui = flomniGuiTools(client) flomni_gui.flomnigui_show_gui() - flomni_gui.flomnigui_show_progress() \ No newline at end of file + flomni_gui.flomnigui_show_progress()