MCPcopy Index your code
hub / github.com/python/cpython / position_window

Method position_window

Lib/idlelib/calltip_w.py:50–57  ·  view source on GitHub ↗

Reposition the window if needed.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

checkhide_eventMethod · 0.95

Calls 4

superClass · 0.85
splitMethod · 0.45
indexMethod · 0.45
seeMethod · 0.45

Tested by

no test coverage detected