-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add painter widget #7411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add painter widget #7411
Changes from 1 commit
d2a2350
1933b4c
bf3219c
908f0b8
a49725f
cdcd45e
2f6eb99
10ddacb
3e3d9bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2631,7 +2631,7 @@ def test(x, y): | |
|
||
def __init__(self, ax, on_select=None, overlay_props=None, | ||
cursor_props=None, radius=5, cmap=LABELS_CMAP, | ||
useblit=True, button=None): | ||
useblit=True, button=None, state_modifier_keys=None): | ||
""" | ||
Parameters: | ||
|
||
|
@@ -2652,9 +2652,11 @@ def __init__(self, ax, on_select=None, overlay_props=None, | |
- Whether to use blitting. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unnecessary bullet point. Also, indent is only 3 spaces instead of 4. |
||
*button* : list | ||
The button numbers supported for the tool (defaults to [1, 2, 3]) | ||
*state_modifier_keys* : dict | ||
A mapping of key names to state modifiers. | ||
""" | ||
super(Painter, self).__init__(ax, on_select, | ||
useblit=useblit, button=button) | ||
useblit=useblit, button=button, state_modifier_keys=None) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to match the opening |
||
self.cmap = cmap | ||
self._previous = None | ||
self._overlay = None | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use numpydoc style for new documentation. Basically all you need is to add some underlining:
and then remove the unnecessary emphasis on the parameter names.