choose a screen position for the tooltip
(self)
| 52 | self.tipwindow.wm_geometry("+%d+%d" % (root_x, root_y)) |
| 53 | |
| 54 | def get_position(self): |
| 55 | """choose a screen position for the tooltip""" |
| 56 | # The tip window must be completely outside the anchor widget; |
| 57 | # otherwise when the mouse enters the tip window we get |
| 58 | # a leave event and it disappears, and then we get an enter |
| 59 | # event and it reappears, and so on forever :-( |
| 60 | # |
| 61 | # Note: This is a simplistic implementation; sub-classes will likely |
| 62 | # want to override this. |
| 63 | return 20, self.anchor_widget.winfo_height() + 1 |
| 64 | |
| 65 | def showcontents(self): |
| 66 | """content display hook for sub-classes""" |
no test coverage detected