'Set up a handler for button clicks.
Args:
handler (func) : handler function to call when button is clicked.
Returns:
None'

def on_click(self, handler):

    self.on_change('clicks', (lambda attr, old, new: handler()))
