def __init__(self, axes, **kwargs): super(HRangeMode, self).__init__(axes, **kwargs) self.icon = get_icon('glue_xrange_select') self.mode_id = 'X range' self.action_text = 'X range' self.tool_tip = 'Select a range of x values' self._roi_tool = qt_roi.QtXRangeROI(self._axes) self.shortcut = 'H'
def __init__(self, viewer, **kwargs): super(HRangeMode, self).__init__(viewer, **kwargs) self._roi_tool = qt_roi.QtXRangeROI(self._axes)