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

Method getlineno

Lib/idlelib/editor.py:1063–1065  ·  view source on GitHub ↗
(self, mark="insert")

Source from the content-addressed store, hash-verified

1061 return top, bot
1062
1063 def getlineno(self, mark="insert"):
1064 text = self.text
1065 return int(float(text.index(mark)))
1066
1067 def get_geometry(self):
1068 "Return (width, height, x, y)"

Callers 4

handle_yviewMethod · 0.95
centerMethod · 0.95
getwindowlinesMethod · 0.95
update_code_contextMethod · 0.45

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected