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

Method get_selection

Lib/idlelib/idle_test/test_sidebar.py:90–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 self.text.delete('1.0', 'end')
89
90 def get_selection(self):
91 return tuple(map(str, self.text.tag_ranges('sel')))
92
93 def get_line_screen_position(self, line):
94 bbox = self.linenumber.sidebar_text.bbox(f'{line}.end -1c')

Callers 4

test_click_selectionMethod · 0.95
test_get_selectionMethod · 0.45

Calls 1

tag_rangesMethod · 0.80

Tested by

no test coverage detected