(self, **kwargs)
return kwargs
Resolve all references in the visual initializer.
Resolve all references in the visual initializer.
Resolve all references in the visual initializer .
def resolve_references(self, **kwargs):
        """Resolve all references in the visual initializer."""
        # deal with reference variables
        self.references = {}
        # record all reference variables in the references dictionary
        for name, value in kwargs.iteritems():
            if isinstance(value, RefVar):
                self.references[name] = value
                # then, resolve the reference value on the CPU only, so that
                # it can be used in initialize(). The reference variable will
                # still be registered in the visual dictionary, for later use
                # by the GL renderer.
                kwargs[name] = self.resolve_reference(value)['data']
        return kwargs
def resolve_references ( self , * * kwargs ) : # deal with reference variables self . references = { } # record all reference variables in the references dictionary for name , value in kwargs . iteritems ( ) : if isinstance ( value , RefVar ) : self . references [ name ] = value # then, resolve the reference value on the CPU only, so that # it can be used in initialize(). The reference variable will # still be registered in the visual dictionary, for later use # by the GL renderer. kwargs [ name ] = self . resolve_reference ( value ) [ 'data' ] return kwargs