(self, **kwargs)
Set specified companion classes, unspecified ones are set to
        default classes.
        
        Arguments:
          * **kwargs: the naming convention is: `paint_manager=PaintManager`.
            The key `paint_manager` is the name the manager is accessed from 
            this widget and from all other companion classes. The value
            is the name of the class, it should end with `Manager`.
Set specified companion classes, unspecified ones are set to
        default classes.
        
        Arguments:
          * **kwargs: the naming convention is: `paint_manager=PaintManager`.
            The key `paint_manager` is the name the manager is accessed from 
            this widget and from all other companion classes. The value
            is the name of the class, it should end with `Manager`.
Set specified companion classes unspecified ones are set to default classes . Arguments : * ** kwargs : the naming convention is : paint_manager = PaintManager . The key paint_manager is the name the manager is accessed from this widget and from all other companion classes . The value is the name of the class it should end with Manager .
def set_companion_classes(self, **kwargs):
        """Set specified companion classes, unspecified ones are set to
        default classes.
        
        Arguments:
          * **kwargs: the naming convention is: `paint_manager=PaintManager`.
            The key `paint_manager` is the name the manager is accessed from 
            this widget and from all other companion classes. The value
            is the name of the class, it should end with `Manager`.
        
        """
        if not hasattr(self, "companion_classes"):
            self.companion_classes = {}
            
        self.companion_classes.update(kwargs)
        
        # default companion classes
        self.companion_classes.update([(k,v) for k,v in \
            DEFAULT_MANAGERS.iteritems() if k not in self.companion_classes])
def set_companion_classes ( self , * * kwargs ) : if not hasattr ( self , "companion_classes" ) : self . companion_classes = { } self . companion_classes . update ( kwargs ) # default companion classes self . companion_classes . update ( [ ( k , v ) for k , v in DEFAULT_MANAGERS . iteritems ( ) if k not in self . companion_classes ] )