class_docstr: A call-tip widget for tkinter text widgets.
class_docstr_tok: ["A","call-tip","widget","for","tkinter","text","widgets","."]
docstr: Handle CHECK_HIDE_EVENT: call hidetip or reschedule.
docstr_tok: ["Handle","CHECK_HIDE_EVENT",":","call","hidetip","or","reschedule","."]
code: def checkhide_event(self, event=None):
      """Handle CHECK_HIDE_EVENT: call hidetip or reschedule."""
      if not self.tipwindow:
          # If the event was triggered by the same event that unbound
          # this function, the function will be called nevertheless,
          # so do nothing in this case.
          return None
  
      # Hide the call-tip if the insertion cursor moves outside of the
      # parenthesis.
      curline, curcol = map(
          int, self.anchor_widget.index("insert").split(".")
      )
      if (
          curline < self.parenline
          or (curline == self.parenline and curcol <= self.parencol)
          or self.anchor_widget.compare("insert", ">", MARK_RIGHT)
      ):
          self.hidetip()
          return "break"
  
      # Not hiding the call-tip.
  
      self.position_window()
      # Re-schedule this function to be called again in a short while.
      if self.checkhide_after_id is not None:
          self.anchor_widget.after_cancel(self.checkhide_after_id)
      self.checkhide_after_id = self.anchor_widget.after(
          CHECKHIDE_TIME, self.checkhide_event
      )
      return None
  
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 6 for calling the CalltipWindow obj's underlying member method code with example usage: obj.checkhide_event(event) and returns: None, None, str