Lines Matching refs:anchor_widget
13 def __init__(self, anchor_widget): argument
20 self.anchor_widget = anchor_widget
30 self.tipwindow = tw = Toplevel(self.anchor_widget)
50 root_x = self.anchor_widget.winfo_rootx() + x
51 root_y = self.anchor_widget.winfo_rooty() + y
63 return 20, self.anchor_widget.winfo_height() + 1
85 def __init__(self, anchor_widget, hover_delay=1000): argument
95 super(OnHoverTooltipBase, self).__init__(anchor_widget)
99 self._id1 = self.anchor_widget.bind("<Enter>", self._show_event)
100 self._id2 = self.anchor_widget.bind("<Leave>", self._hide_event)
101 self._id3 = self.anchor_widget.bind("<Button>", self._hide_event)
105 self.anchor_widget.unbind("<Enter>", self._id1)
106 self.anchor_widget.unbind("<Leave>", self._id2) # pragma: no cover
107 self.anchor_widget.unbind("<Button>", self._id3) # pragma: no cover
126 self._after_id = self.anchor_widget.after(self.hover_delay,
134 self.anchor_widget.after_cancel(after_id)
147 def __init__(self, anchor_widget, text, hover_delay=1000): argument
157 super(Hovertip, self).__init__(anchor_widget, hover_delay=hover_delay)