Show More
@@ -53,7 +53,7 class ButtonWidget(Widget): | |||||
53 | Set to true to remove the callback from the list of callbacks.""" |
|
53 | Set to true to remove the callback from the list of callbacks.""" | |
54 | if remove: |
|
54 | if remove: | |
55 | self._click_handlers.remove(callback) |
|
55 | self._click_handlers.remove(callback) | |
56 | else: |
|
56 | elif not callback in self._click_handlers: | |
57 | self._click_handlers.append(callback) |
|
57 | self._click_handlers.append(callback) | |
58 |
|
58 | |||
59 |
|
59 |
General Comments 0
You need to be logged in to leave comments.
Login now