peng3d/gui/layered.py
def switchImage(self,name):
        """
        Switches the active image to the given name.
        
        :raises ValueError: If there is no such image
        """
        if name not in self.imgs:
            raise ValueError("No image of name '%s'"%name)
        elif self.cur_img==name:
            return
        
        self.cur_img = name
        self.on_redraw()
def switchImage(self,name):
        """
        Switches the active image to the given name.
        
        :raises ValueError: If there is no such image
        """
        if name not in self.imgs:
            raise ValueError("No image of name '%s'"%name)
        elif self.cur_img==name:
            return
        
        self.cur_img = name
        self.on_redraw()
def switchImage ( self , name ) : if name not in self . imgs : raise ValueError ( "No image of name '%s'" % name ) elif self . cur_img == name : return self . cur_img = name self . on_redraw ( )
Switches the active image to the given name.
        
        :raises ValueError: If there is no such image
Switches the active image to the given name . : raises ValueError : If there is no such image