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

Method getwindowlines

Lib/idlelib/editor.py:1053–1061  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1051 text.yview(float(newtop))
1052
1053 def getwindowlines(self):
1054 text = self.text
1055 top = self.getlineno("@0,0")
1056 bot = self.getlineno("@0,65535")
1057 if top == bot and text.winfo_height() == 1:
1058 # Geometry manager hasn't run yet
1059 height = int(text['height'])
1060 bot = top + height - 1
1061 return top, bot
1062
1063 def getlineno(self, mark="insert"):
1064 text = self.text

Callers 1

centerMethod · 0.95

Calls 2

getlinenoMethod · 0.95
winfo_heightMethod · 0.80

Tested by

no test coverage detected