parameters: (self, func, subst=None, needcleanup=1)
return_statement: return name
docstring: Return a newly created Tcl function. If this
          function is called, the Python function FUNC will
          be executed. An optional function SUBST can
          be given which will be executed before FUNC.
docstring_summary: Return a newly created Tcl function. If this
          function is called, the Python function FUNC will
          be executed. An optional function SUBST can
          be given which will be executed before FUNC.
docstring_tokens: Return a newly created Tcl function . If this function is called the Python function FUNC will be executed . An optional function SUBST can be given which will be executed before FUNC .
function: def _register(self, func, subst=None, needcleanup=1):
          """Return a newly created Tcl function. If this
          function is called, the Python function FUNC will
          be executed. An optional function SUBST can
          be given which will be executed before FUNC."""
          f = CallWrapper(func, subst, self).__call__
          name = repr(id(f))
          try:
              func = func.im_func
          except AttributeError:
              pass
          try:
              name = name + func.__name__
          except AttributeError:
              pass
          self.tk.createcommand(name, f)
          if needcleanup:
              if self._tclCommands is None:
                  self._tclCommands = []
              self._tclCommands.append(name)
          return name
function_tokens: def _register ( self , func , subst = None , needcleanup = 1 ) : f = CallWrapper ( func , subst , self ) . __call__ name = repr ( id ( f ) ) try : func = func . im_func except AttributeError : pass try : name = name + func . __name__ except AttributeError : pass self . tk . createcommand ( name , f ) if needcleanup : if self . _tclCommands is None : self . _tclCommands = [ ] self . _tclCommands . append ( name ) return name