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

Method set_line_and_column

Lib/idlelib/editor.py:395–398  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

393 self.text.after_idle(self.set_line_and_column)
394
395 def set_line_and_column(self, event=None):
396 line, column = self.text.index(INSERT).split('.')
397 self.status_bar.set_label('column', 'Col: %s' % column)
398 self.status_bar.set_label('line', 'Ln: %s' % line)
399
400
401 """ Menu definitions and functions.

Callers 3

goto_line_eventMethod · 0.95
showpromptMethod · 0.80
resetoutputMethod · 0.80

Calls 3

set_labelMethod · 0.80
splitMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected