Show More
@@ -196,8 +196,10 b' class Widget(LoggingConfigurable):' | |||
|
196 | 196 | Parameters |
|
197 | 197 | ---------- |
|
198 | 198 | callback: callable |
|
199 | callback will be passed two arguments when a message arrives: | |
|
199 | callback will be passed two arguments when a message arrives:: | |
|
200 | ||
|
200 | 201 | callback(widget, content) |
|
202 | ||
|
201 | 203 | remove: bool |
|
202 | 204 | True if the callback should be unregistered.""" |
|
203 | 205 | self._msg_callbacks.register_callback(callback, remove=remove) |
@@ -208,8 +210,10 b' class Widget(LoggingConfigurable):' | |||
|
208 | 210 | Parameters |
|
209 | 211 | ---------- |
|
210 | 212 | callback: method handler |
|
211 | Must have a signature of: | |
|
213 | Must have a signature of:: | |
|
214 | ||
|
212 | 215 | callback(widget, **kwargs) |
|
216 | ||
|
213 | 217 | kwargs from display are passed through without modification. |
|
214 | 218 | remove: bool |
|
215 | 219 | True if the callback should be unregistered.""" |
General Comments 0
You need to be logged in to leave comments.
Login now