From d449e01f953d66d1b56e0e88782bddf23bb42ab9 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Fri, 22 May 2026 17:22:43 +0200 Subject: [PATCH] fix(gui_tools): remove all custom gui timeouts --- .../bec_ipython_client/plugins/flomni/gui_tools.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 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 274a519..a792250 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/gui_tools.py @@ -22,8 +22,6 @@ class flomniGuiToolsError(Exception): class flomniGuiTools: - GUI_RPC_TIMEOUT = 20 - def __init__(self): self.text_box = None self.progressbar = None @@ -43,7 +41,7 @@ class flomniGuiTools: self.flomni_window = self.gui.windows["flomni"] self.gui.flomni.raise_window() else: - self.flomni_window = self.gui.new("flomni", timeout=self.GUI_RPC_TIMEOUT) + self.flomni_window = self.gui.new("flomni") time.sleep(1) def flomnigui_stop_gui(self): @@ -56,9 +54,7 @@ class flomniGuiTools: self.flomnigui_show_gui() if self._flomnigui_is_missing("xeyegui"): self.flomnigui_remove_all_docks() - self.xeyegui = self.gui.flomni.new( - "XRayEye", object_name="xrayeye", timeout=self.GUI_RPC_TIMEOUT - ) + self.xeyegui = self.gui.flomni.new("XRayEye", object_name="xrayeye") # start live if not dev.cam_xeye.live_mode_enabled.get(): dev.cam_xeye.live_mode_enabled.put(True) @@ -68,9 +64,7 @@ class flomniGuiTools: self.flomnigui_show_gui() if self._flomnigui_is_missing("xeyegui"): self.flomnigui_remove_all_docks() - self.xeyegui = self.gui.flomni.new( - "XRayEye", object_name="xrayeye", timeout=self.GUI_RPC_TIMEOUT - ) + self.xeyegui = self.gui.flomni.new("XRayEye", object_name="xrayeye") self.xeyegui.switch_tab("fit") def _flomnigui_check_attribute_not_exists(self, attribute_name): @@ -128,7 +122,7 @@ class flomniGuiTools: # dev.cam_flomni_gripper.stop_live_mode() # dev.cam_xeye.live_mode = False if hasattr(self.gui, "flomni"): - self.gui.flomni.delete_all(timeout=self.GUI_RPC_TIMEOUT) + self.gui.flomni.delete_all() self.progressbar = None self.text_box = None self.xeyegui = None