class_docstr: Callable for original tk command that has been redirected.
  
  Returned by .register; can be used in the function registered.
  redir = WidgetRedirector(text)
  def my_insert(*args):
      print("insert", args)
      original_insert(*args)
  original_insert = redir.register("insert", my_insert)
class_docstr_tok: ["Callable","for","original","tk","command","that","has","been","redirected",".","Returned","by",".register",";","can","be","used","in","the","function","registered",".","redir","=","WidgetRedirector","(","text",")","def","my_insert","(","*","args",")",":","print","(","``","insert","''",",","args",")","original_insert","(","*","args",")","original_insert","=","redir.register","(","``","insert","''",",","my_insert",")"]
code: def __repr__(self):
      return f"{self.__class__.__name__,}({self.redir!r}, {self.operation!r})"
  
file_path: cpython/Lib/idlelib/redirector.py
imports: from tkinter import TclError
label_desc: Use image node_id 2 for calling the OriginalCommand obj's underlying member method code with example usage: obj.__repr__() and returns: self, str, self, str, self, str