def ApplyAttributes(self, attributes):
     Label.ApplyAttributes(self, attributes)
     bracket = attributes.bracket
     cs = uicore.uilib.bracketCurveSet
     xBinding = trinity.CreateBinding(cs, bracket.renderObject, 'displayX',
                                      self.renderObject, 'displayX')
     yBinding = trinity.CreateBinding(cs, bracket.renderObject, 'displayY',
                                      self.renderObject, 'displayY')
     self.bindings = (xBinding, yBinding)
     self.left = 0
     self.top = -trinity.device.height
     self.OnMouseUp = bracket.OnMouseUp
     self.OnMouseDown = bracket.OnMouseDown
     self.OnMouseEnter = bracket.OnMouseEnter
     self.OnMouseExit = bracket.OnMouseExit
     self.OnMouseHover = bracket.OnMouseHover
     self.OnClick = bracket.OnClick
     self.GetMenu = bracket.GetMenu
Exemplo n.º 2
0
 def ApplyAttributes(self, attributes):
     Label.ApplyAttributes(self, attributes)
     self.state = uiconst.UI_NORMAL
     self.func = attributes.func
     self.bold = True
Exemplo n.º 3
0
 def ApplyAttributes(self, attributes):
     ColorThemeMixin.ApplyAttributes(self, attributes)
     Label.ApplyAttributes(self, attributes)
Exemplo n.º 4
0
 def ApplyAttributes(self, attributes):
     UIColorMixin.ApplyAttributes(self, attributes)
     Label.ApplyAttributes(self, attributes)