Reposition the window if needed.
(self)
| 48 | return box[0] + 2, box[1] + box[3] |
| 49 | |
| 50 | def position_window(self): |
| 51 | "Reposition the window if needed." |
| 52 | curline = int(self.anchor_widget.index("insert").split('.')[0]) |
| 53 | if curline == self.lastline: |
| 54 | return |
| 55 | self.lastline = curline |
| 56 | self.anchor_widget.see("insert") |
| 57 | super().position_window() |
| 58 | |
| 59 | def showtip(self, text, parenleft, parenright): |
| 60 | """Show the call-tip, bind events which will close it and reposition it. |
no test coverage detected