So on the heels of my last question about button lag, I dug through the code base to find the following function:
@abstract
class AbstractGroup(Widget):
""" Abstract base class for all kinds of groups. ``AbstractGroup``
is not generally useful to instantiate on its own.
"""
labels = List(String, help="""
List of text labels contained in this group.
""")
def on_click(self, handler):
""" Set up a handler for button check/radio box clicks including
the selected indices.
Args:
handler (func) : handler function to call when button is clicked.
Returns:
None
"""
print "Button Clicked"
self.on_change('active', lambda attr, old, new: handler(new))
Clearly this function can be used to add functionality. Can someone please explain to me what “handler” is? How is it generated when a button is clicked?
Can I just call this function by inserting ButtonGroup.on_click() from the radiobuttongroup?

