(self, *bindings)
Set the interaction mode by specifying the binding object.
        
        Several binding objects can be given for the binding manager, such that
        the first one is the currently active one.
        
        Arguments:
          * bindings: a list of classes instances deriving from
            Bindings.
Set the interaction mode by specifying the binding object.
        
        Several binding objects can be given for the binding manager, such that
        the first one is the currently active one.
        
        Arguments:
          * bindings: a list of classes instances deriving from
            Bindings.
Set the interaction mode by specifying the binding object . Several binding objects can be given for the binding manager such that the first one is the currently active one . Arguments : * bindings : a list of classes instances deriving from Bindings .
def set_bindings(self, *bindings):
        """Set the interaction mode by specifying the binding object.
        
        Several binding objects can be given for the binding manager, such that
        the first one is the currently active one.
        
        Arguments:
          * bindings: a list of classes instances deriving from
            Bindings.
            
        """
        bindings = list(bindings)
        if not bindings:
            bindings = [PlotBindings()]
        # if type(bindings) is not list and type(bindings) is not tuple:
            # bindings = [bindings]
        # if binding is a class, try instanciating it
        for i in xrange(len(bindings)):
            if not isinstance(bindings[i], Bindings):
                bindings[i] = bindings[i]()
        self.bindings = bindings
def set_bindings ( self , * bindings ) : bindings = list ( bindings ) if not bindings : bindings = [ PlotBindings ( ) ] # if type(bindings) is not list and type(bindings) is not tuple: # bindings = [bindings] # if binding is a class, try instanciating it for i in xrange ( len ( bindings ) ) : if not isinstance ( bindings [ i ] , Bindings ) : bindings [ i ] = bindings [ i ] ( ) self . bindings = bindings