peng3d/gui/button.py
def getPosSize(self):
        """
        Helper function converting the actual widget position and size into a usable and offsetted form.
        
        This function should return a 6-tuple of ``(sx,sy,x,y,bx,by)`` where sx and sy are the size, x and y the position and bx and by are the border size.
        
        All values should be in pixels and already include all offsets, as they are used directly for generation of vertex data.
        
        This method can also be overridden to limit the background to a specific part of its widget.
        """
        sx,sy = self.widget.size
        x,y = self.widget.pos
        bx,by = self.border
        return sx,sy,x,y,bx,by
def getPosSize(self):
        """
        Helper function converting the actual widget position and size into a usable and offsetted form.
        
        This function should return a 6-tuple of ``(sx,sy,x,y,bx,by)`` where sx and sy are the size, x and y the position and bx and by are the border size.
        
        All values should be in pixels and already include all offsets, as they are used directly for generation of vertex data.
        
        This method can also be overridden to limit the background to a specific part of its widget.
        """
        sx,sy = self.widget.size
        x,y = self.widget.pos
        bx,by = self.border
        return sx,sy,x,y,bx,by
Helper function converting the actual widget position and size into a usable and offsetted form.
        
        This function should return a 6-tuple of ``(sx,sy,x,y,bx,by)`` where sx and sy are the size, x and y the position and bx and by are the border size.
        
        All values should be in pixels and already include all offsets, as they are used directly for generation of vertex data.
        
        This method can also be overridden to limit the background to a specific part of its widget.