peng3d/gui/button.py
def redraw_label(self):
        """
        Re-calculates the position of the Label.
        """
        # Convenience variables
        sx,sy = self.size
        x,y = self.pos
        
        # Label position
        self._label.anchor_x = "left"
        self._label.x = x+sx/2.+sx
        self._label.y = y+sy/2.+sy*.15
        self._label._update()
def redraw_label(self):
        # Convenience variables
        sx,sy = self.size
        x,y = self.pos
        
        # Label position
        self._label.anchor_x = "left"
        self._label.x = x+sx/2.+sx
        self._label.y = y+sy/2.+sy*.15
        self._label._update()
def redraw_label ( self ) : # Convenience variables sx , sy = self . size x , y = self . pos # Label position self . _label . anchor_x = "left" self . _label . x = x + sx / 2. + sx self . _label . y = y + sy / 2. + sy * .15 self . _label . _update ( )
Re-calculates the position of the Label.
Re - calculates the position of the Label .