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

Method add_state

lib/matplotlib/widgets.py:2640–2660  ·  view source on GitHub ↗

Add a state to define the widget's behavior. See the *state_modifier_keys* parameter in the constructor of the concrete selector class for details. Parameters ---------- state : str Must be a supported state of the selector. See the

(self, state)

Source from the content-addressed store, hash-verified

2638 _api.check_in_list(supported_state, state=state)
2639
2640 def add_state(self, state):
2641 """
2642 Add a state to define the widget's behavior. See the
2643 *state_modifier_keys* parameter in the constructor of the concrete
2644 selector class for details.
2645
2646 Parameters
2647 ----------
2648 state : str
2649 Must be a supported state of the selector. See the
2650 *state_modifier_keys* parameter in the constructor of the concrete
2651 selector class for details.
2652
2653 Raises
2654 ------
2655 ValueError
2656 When the state is not supported by the selector.
2657
2658 """
2659 self._validate_state(state)
2660 self._state.add(state)
2661
2662 def remove_state(self, state):
2663 """

Calls 2

_validate_stateMethod · 0.95
addMethod · 0.45