(self, name)
return visuals[0]
Return a visual by its name.
Return a visual by its name.
Return a visual by its name .
def get_visual(self, name):
        """Return a visual by its name."""
        visuals = [v for v in self.get_visuals() if v.get('name', '') == name]
        if not visuals:
            raise ValueError("The visual %s has not been found" % name)
        return visuals[0]
def get_visual ( self , name ) : visuals = [ v for v in self . get_visuals ( ) if v . get ( 'name' , '' ) == name ] if not visuals : raise ValueError ( "The visual %s has not been found" % name ) return visuals [ 0 ]