def __init__(self, axes, **kwargs): super(VRangeMode, self).__init__(axes, **kwargs) self.icon = get_icon('glue_yrange_select') self.mode_id = 'Y range' self.action_text = 'Y range' self.tool_tip = 'Select a range of y values' self._roi_tool = qt_roi.QtYRangeROI(self._axes) self.shortcut = 'V'
def __init__(self, viewer, **kwargs): super(VRangeMode, self).__init__(viewer, **kwargs) self._roi_tool = qt_roi.QtYRangeROI(self._axes)