def ApplyAttributes(self, attributes): self.color = attributes.get('color', self.default_color) self.iconPath = attributes.get('icon', self.default_icon) self.iconSize = attributes.get('iconSize', self.default_iconSize) args = attributes.get('args', None) ButtonCore.ApplyAttributes(self, attributes) if args == 'self': self.args = self
def Enable(self): ButtonCore.Enable(self) self.underlay.SetEnabled()
def Disable(self): ButtonCore.Disable(self) self.underlay.SetDisabled()
def Confirm(self, *args): ButtonCore.Confirm(self) self.underlay.Blink()