(self, anchor_widget, hover_delay=1000)
Create a tooltip with a mouse hover delay.

        anchor_widget: the widget next to which the tooltip will be shown
        hover_delay: time to delay before showing the tooltip, in milliseconds

        Note that a widget will only be shown when showtip() is called,
        e.g. after hovering over the anchor widget with the mouse for enough
        time.
Create a tooltip with a mouse hover delay.
Create a tooltip with a mouse hover delay .
def __init__(self, anchor_widget, hover_delay=1000):
        """Create a tooltip with a mouse hover delay.

        anchor_widget: the widget next to which the tooltip will be shown
        hover_delay: time to delay before showing the tooltip, in milliseconds

        Note that a widget will only be shown when showtip() is called,
        e.g. after hovering over the anchor widget with the mouse for enough
        time.
        """
        super(OnHoverTooltipBase, self).__init__(anchor_widget)
        self.hover_delay = hover_delay

        self._after_id = None
        self._id1 = self.anchor_widget.bind("<Enter>", self._show_event)
        self._id2 = self.anchor_widget.bind("<Leave>", self._hide_event)
        self._id3 = self.anchor_widget.bind("<Button>", self._hide_event)
def __init__ ( self , anchor_widget , hover_delay = 1000 ) : super ( OnHoverTooltipBase , self ) . __init__ ( anchor_widget ) self . hover_delay = hover_delay self . _after_id = None self . _id1 = self . anchor_widget . bind ( "<Enter>" , self . _show_event ) self . _id2 = self . anchor_widget . bind ( "<Leave>" , self . _hide_event ) self . _id3 = self . anchor_widget . bind ( "<Button>" , self . _hide_event )