(cls, shape)
Given a shape name, returns the corresponding shape drawer class

        @param shape: the name of the shape
        @return: the corresponding shape drawer class

        @raise ValueError: if the shape is unknown
Given a shape name, returns the corresponding shape drawer class
Given a shape name returns the corresponding shape drawer class
def resolve(cls, shape):
        """Given a shape name, returns the corresponding shape drawer class

        @param shape: the name of the shape
        @return: the corresponding shape drawer class

        @raise ValueError: if the shape is unknown
        """
        try:
            return cls.known_shapes[shape]
        except KeyError:
            raise ValueError("unknown shape: %s" % shape)
def resolve ( cls , shape ) : try : return cls . known_shapes [ shape ] except KeyError : raise ValueError ( "unknown shape: %s" % shape )