Beispiel #1
0
 def __init__(self, axes, text):
     Label.__init__(self, axes, text)
     
     # set textsize and align
     self.halign = 0
     self.fontSize = 12
     
     # set back color to be transparant
     self.bgcolor = ''
     
     # set position
     self.position = 0, -20, 1, 15
     
     # correct axes' position
     dy = -20        
     axes.position.Correct(0, -dy, 0, dy) 
Beispiel #2
0
    def __init__(self, axes, text):
        Label.__init__(self, axes, text)

        # set textsize and align
        self.halign = 0
        self.fontSize = 12

        # set back color to be transparant
        self.bgcolor = ''

        # set position
        self.position = 0, -20, 1, 15

        # correct axes' position
        dy = -20
        axes.position.Correct(0, -dy, 0, dy)
Beispiel #3
0
    def __init__(self, parent, *args, **kwargs):
        Label.__init__(self, parent, *args, **kwargs)

        # Get an edge
        self.edgeWidth = 1

        # Text is centered by default
        self.halign = 0

        # And changes appearance on mouse over
        self._isOver = False
        self.eventEnter.Bind(self._OnEnter)
        self.eventLeave.Bind(self._OnLeave)

        # Create new event and bind handlers to implement it
        self._eventPress = MouseEvent(self)
        self.eventMouseUp.Bind(self._OnPressDetectUp)
Beispiel #4
0
    def __init__(self, parent, *args, **kwargs):
        Label.__init__(self, parent, *args, **kwargs)

        # Get an edge
        self.edgeWidth = 1

        # Text is centered by default
        self.halign = 0

        # And changes appearance on mouse over
        self._isOver = False
        self.eventEnter.Bind(self._OnEnter)
        self.eventLeave.Bind(self._OnLeave)

        # Create new event and bind handlers to implement it
        self._eventPress = MouseEvent(self)
        self.eventMouseUp.Bind(self._OnPressDetectUp)