peng3d/gui/container.py
def on_redraw(self):
        """
        Redraws the background and any child widgets.
        """
        x,y = self.pos
        sx,sy = self.size
        self.bg_vlist.vertices = [x,y, x+sx,y, x+sx,y+sy, x,y+sy]
        self.stencil_vlist.vertices = [x,y, x+sx,y, x+sx,y+sy, x,y+sy]
        if isinstance(self.bg,Background):
            if not self.bg.initialized:
                self.bg.init_bg()
                self.bg.initialized=True
            self.bg.redraw_bg()
def on_redraw(self):
        """
        Redraws the background and any child widgets.
        """
        x,y = self.pos
        sx,sy = self.size
        self.bg_vlist.vertices = [x,y, x+sx,y, x+sx,y+sy, x,y+sy]
        self.stencil_vlist.vertices = [x,y, x+sx,y, x+sx,y+sy, x,y+sy]
        if isinstance(self.bg,Background):
            if not self.bg.initialized:
                self.bg.init_bg()
                self.bg.initialized=True
            self.bg.redraw_bg()
def on_redraw ( self ) : x , y = self . pos sx , sy = self . size self . bg_vlist . vertices = [ x , y , x + sx , y , x + sx , y + sy , x , y + sy ] self . stencil_vlist . vertices = [ x , y , x + sx , y , x + sx , y + sy , x , y + sy ] if isinstance ( self . bg , Background ) : if not self . bg . initialized : self . bg . init_bg ( ) self . bg . initialized = True self . bg . redraw_bg ( )
Redraws the background and any child widgets.
Redraws the background and any child widgets .