fix(gui_tools): remove all custom gui timeouts
CI for csaxs_bec / test (pull_request) Successful in 1m31s
CI for csaxs_bec / test (push) Successful in 1m34s

This commit is contained in:
2026-06-17 09:51:45 +02:00
parent 5624467544
commit d449e01f95
@@ -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