Fixed button on_click handler so it's initiated on instanciation

Jonathan Frederic 13 years ago
parent 4d324f28f1
commit e84e1d2df6

@ -33,7 +33,10 @@ class ButtonWidget(Widget):
description = Unicode('', help="Description of the button (label).")
disabled = Bool(False, help="Enable or disable user changes.")
_click_handlers = []
def __init__(self, **kwargs):
self._click_handlers = []
super(ButtonWidget, self).__init__(**kwargs)
def on_click(self, callback, remove=False):

Loading…
Cancel
Save