code: def _calltip_window(parent):  # htest #
      from tkinter import Toplevel, Text, LEFT, BOTH
  
      top = Toplevel(parent)
      top.title("Test call-tips")
      x, y = map(int, parent.geometry().split("+")[1:])
      top.geometry("250x100+%d+%d" % (x + 175, y + 150))
      text = Text(top)
      text.pack(side=LEFT, fill=BOTH, expand=1)
      text.insert("insert", "string.split")
      top.update()
  
      calltip = CalltipWindow(text)
  
      def calltip_show(event):
          calltip.showtip("(s='Hello world')", "insert", "end")
  
      def calltip_hide(event):
          calltip.hidetip()
  
      text.event_add("<<calltip-show>>", "(")
      text.event_add("<<calltip-hide>>", ")")
      text.bind("<<calltip-show>>", calltip_show)
      text.bind("<<calltip-hide>>", calltip_hide)
  
      text.focus_set()
  
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 1 for calling a global function with example usage: _calltip_window(parent) without return types