def __init__(self, name, hw_comp, stream=None, lbl_ctrl=None, value_ctrl=None, pos_2_ctrl=None, ctrl_2_pos=None, events=None): """ :param name: (str): The name of the setting :param hw_comp: (HardwareComponent): The component to which the setting belongs :param lbl_ctrl: (wx.StaticText): The setting label :param value_ctrl: (wx.Window): The widget containing the current value See the AxisConnector class for a description of the other parameters. """ Entry.__init__(self, name, hw_comp, stream, lbl_ctrl, value_ctrl) if None not in (name, value_ctrl): AxisConnector.__init__(self, name, hw_comp, value_ctrl, pos_2_ctrl, ctrl_2_pos, events) elif any((pos_2_ctrl, ctrl_2_pos, events)): logging.error("Cannot create AxisConnector") else: logging.debug("Cannot create AxisConnector")
def resume(self): if hasattr(self, "pos_2_ctrl") and self.pos_2_ctrl: AxisConnector.resume(self)
def pause(self): if hasattr(self, "pos_2_ctrl") and self.pos_2_ctrl: AxisConnector.pause(self)