(cls, drawer_class)
Registers the given shape drawer class under the given names.

        @param drawer_class: the shape drawer class to be registered
Registers the given shape drawer class under the given names.
Registers the given shape drawer class under the given names .
def register(cls, drawer_class):
        """Registers the given shape drawer class under the given names.

        @param drawer_class: the shape drawer class to be registered
        """
        names = drawer_class.names
        if isinstance(names, str):
            names = names.split()

        for name in names:
            cls.known_shapes[name] = drawer_class
def register ( cls , drawer_class ) : names = drawer_class . names if isinstance ( names , str ) : names = names . split ( ) for name in names : cls . known_shapes [ name ] = drawer_class