class_docstr: A call-tip widget for tkinter text widgets.
class_docstr_tok: ["A","call-tip","widget","for","tkinter","text","widgets","."]
docstr: Reposition the window if needed.
docstr_tok: ["Reposition","the","window","if","needed","."]
code: def position_window(self):
      "Reposition the window if needed."
      curline = int(self.anchor_widget.index("insert").split(".")[0])
      if curline == self.lastline:
          return
      self.lastline = curline
      self.anchor_widget.see("insert")
      super().position_window()
  
file_path: cpython/Lib/idlelib/calltip_w.py
imports: from tkinter import Label, LEFT, SOLID, TclError
  from idlelib.tooltip import TooltipBase
label_desc: Use image node_id 3 for calling the CalltipWindow obj's underlying member method code with example usage: obj.position_window() without return types