def import_variables(self, container, varnames=None):
        """Helper method to avoid call get_variable for every variable."""
        if varnames is None:
            for keyword in self.tkvariables:
                setattr(container, keyword, self.tkvariables[keyword])
        else:
            for keyword in varnames:
                if keyword in self.tkvariables:
                    setattr(container, keyword, self.tkvariables[keyword])
def import_variables ( self , container , varnames = None ) : if varnames is None : for keyword in self . tkvariables : setattr ( container , keyword , self . tkvariables [ keyword ] ) else : for keyword in varnames : if keyword in self . tkvariables : setattr ( container , keyword , self . tkvariables [ keyword ] )
Helper method to avoid call get_variable for every variable.