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

Method gotoline

Lib/idlelib/editor.py:749–754  ·  view source on GitHub ↗
(self, lineno)

Source from the content-addressed store, hash-verified

747 return "break"
748
749 def gotoline(self, lineno):
750 if lineno is not None and lineno > 0:
751 self.text.mark_set("insert", "%d.0" % lineno)
752 self.text.tag_remove("sel", "1.0", "end")
753 self.text.tag_add("sel", "insert", "insert +1l")
754 self.center()
755
756 def ispythonsource(self, filename):
757 if not filename or os.path.isdir(filename):

Callers 4

show_sourceMethod · 0.80
tabnannyMethod · 0.80
OnDoubleClickMethod · 0.80
gotofilelineMethod · 0.80

Calls 4

centerMethod · 0.95
tag_addMethod · 0.80
mark_setMethod · 0.45
tag_removeMethod · 0.45

Tested by

no test coverage detected