Esempio n. 1
0
 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
Esempio n. 2
0
 def Enable(self):
     ButtonCore.Enable(self)
     self.underlay.SetEnabled()
Esempio n. 3
0
 def Disable(self):
     ButtonCore.Disable(self)
     self.underlay.SetDisabled()
Esempio n. 4
0
 def Confirm(self, *args):
     ButtonCore.Confirm(self)
     self.underlay.Blink()