Fix adding functions to invoke in UiButton
This commit is contained in:
parent
65c9171428
commit
8b126f636b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user