(self, shader_type=None)
Return all variables defined in the visual.
Return all variables defined in the visual.
Return all variables defined in the visual .
def get_variables(self, shader_type=None):
        """Return all variables defined in the visual."""
        if not shader_type:
            return self.variables
        else:
            return [var for (_, var) in self.variables.iteritems() \
                            if var['shader_type'] == shader_type]
def get_variables ( self , shader_type = None ) : if not shader_type : return self . variables else : return [ var for ( _ , var ) in self . variables . iteritems ( ) if var [ 'shader_type' ] == shader_type ]