Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4e971c7

Browse filesBrowse files
author
Pradeep Reddy Raamana
committed
better docs/style
1 parent 84cb8d9 commit 4e971c7
Copy full SHA for 4e971c7

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,10 +1183,15 @@ def on_clicked(self, func):
11831183
func : callable
11841184
When the button is clicked, call *func* with button label
11851185
When all buttons are cleared, call *func* with None
1186+
The callback func must have the signature::
1187+
1188+
def func(label: str) -> Any
1189+
1190+
Return values may exist, but are ignored.
11861191
11871192
Returns
11881193
-------
1189-
A connection id, which can be used to disconnect
1194+
A connection id, which can be used to disconnect.
11901195
"""
11911196
cid = self.cnt
11921197
self.observers[cid] = func

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.