diff --git a/src/ui/UiButton.py b/src/ui/UiButton.py index 2eeab0d..0587557 100644 --- a/src/ui/UiButton.py +++ b/src/ui/UiButton.py @@ -24,7 +24,9 @@ class UiButton(UiElement): self.beingClicked = False self.image = self._images[0] - self.functionsToInvokeWhenClicked = functionsToInvokeWhenClicked + self.functionsToInvokeWhenClicked = [] + + self.functionsToInvokeWhenClicked.extend(functionsToInvokeWhenClicked) def eventHandler(self, event): # change selected color if rectangle clicked