

def _mouse_modes(self):
    if (not self._coordinator.selections_enabled):
        return []
    axes = self.client.axes

    def apply_mode(mode):
        self.client.apply_roi(mode.roi())
    return [RectangleMode(axes, roi_callback=apply_mode), PolyMode(axes, roi_callback=apply_mode)]

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py CustomWidgetBase._mouse_modes/original