DOC: Explain use of callback parameter.

This commit is contained in:
Tony S Yu
2012-07-28 11:40:04 -04:00
parent b6045a8d5f
commit 1000c73ceb
+5 -1
View File
@@ -62,7 +62,8 @@ class Slider(BaseWidget):
ptype : {'arg' | 'kwarg' | 'plugin'}
Parameter type.
callback : function
Callback function called in response to slider changes.
Callback function called in response to slider changes. This function
is typically set when the widget is added to a plugin.
orientation : {'horizontal' | 'vertical'}
Slider orientation.
update_on : {'move' | 'release'}
@@ -169,6 +170,9 @@ class ComboBox(BaseWidget):
Allowed parameter values.
ptype : {'arg' | 'kwarg' | 'plugin'}
Parameter type.
callback : function
Callback function called in response to slider changes. This function
is typically set when the widget is added to a plugin.
"""
def __init__(self, name, items, ptype='kwarg', callback=None):