MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_action

Method _get_action

lib/matplotlib/widgets.py:3571–3580  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3569 return False
3570
3571 def _get_action(self):
3572 state = self._state
3573 if 'rotate' in state and self._active_handle in self._corner_order:
3574 return _RectangleSelectorAction.ROTATE
3575 elif self._active_handle == 'C':
3576 return _RectangleSelectorAction.MOVE
3577 elif self._active_handle:
3578 return _RectangleSelectorAction.RESIZE
3579
3580 return _RectangleSelectorAction.CREATE
3581
3582
3583 def _onmove(self, event):

Callers 2

_pressMethod · 0.95
_onmoveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected