(self, event=None)
return None
Handle CHECK_HIDE_EVENT: call hidetip or reschedule.
Handle CHECK_HIDE_EVENT: call hidetip or reschedule.
Handle CHECK_HIDE_EVENT : call hidetip or reschedule .
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
def checkhide_event ( self , event = None ) : 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