Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Add alignment gui 1d v1

Merged appel_c requested to merge feat/add_alignment_gui_1d_v1 into main
1 file
+ 38
0
Compare changes
  • Side-by-side
  • Inline
@@ -243,6 +243,44 @@ class ScanControl(BECWidget, QWidget):
"""
self.current_scan = scan_name
@Property(bool)
def hide_arg_box(self):
"""Property to hide the argument box."""
if self.arg_box is None:
return True
return not self.arg_box.isVisible()
@hide_arg_box.setter
def hide_arg_box(self, hide: bool):
"""Setter for the hide_arg_box property.
Args:
hide(bool): Hide or show the argument box.
"""
if self.arg_box is not None:
self.arg_box.setVisible(not hide)
@Property(bool)
def hide_kwarg_boxes(self):
"""Property to hide the keyword argument boxes."""
if len(self.kwarg_boxes) == 0:
return True
for box in self.kwarg_boxes:
if box is not None:
return not box.isVisible()
@hide_kwarg_boxes.setter
def hide_kwarg_boxes(self, hide: bool):
"""Setter for the hide_kwarg_boxes property.
Args:
hide(bool): Hide or show the keyword argument boxes.
"""
if len(self.kwarg_boxes) > 0:
for box in self.kwarg_boxes:
box.setVisible(not hide)
@Property(bool)
def hide_scan_remember_toggle(self):
"""Property to hide the scan remember toggle."""
Loading