Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdcd45e

Browse files
committed
Add handling of state_modifier_keys
1 parent a49725f commit cdcd45e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/widgets.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ def test(x, y):
26312631

26322632
def __init__(self, ax, on_select=None, overlay_props=None,
26332633
cursor_props=None, radius=5, cmap=LABELS_CMAP,
2634-
useblit=True, button=None):
2634+
useblit=True, button=None, state_modifier_keys=None):
26352635
"""
26362636
Parameters:
26372637
@@ -2652,9 +2652,11 @@ def __init__(self, ax, on_select=None, overlay_props=None,
26522652
- Whether to use blitting.
26532653
*button* : list
26542654
The button numbers supported for the tool (defaults to [1, 2, 3])
2655+
*state_modifier_keys* : dict
2656+
A mapping of key names to state modifiers.
26552657
"""
26562658
super(Painter, self).__init__(ax, on_select,
2657-
useblit=useblit, button=button)
2659+
useblit=useblit, button=button, state_modifier_keys=None)
26582660
self.cmap = cmap
26592661
self._previous = None
26602662
self._overlay = None

0 commit comments

Comments
 (0)