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

Function insert

Lib/idlelib/idle_test/test_editor.py:95–98  ·  view source on GitHub ↗
(text, string)

Source from the content-addressed store, hash-verified

93
94
95def insert(text, string):
96 text.delete('1.0', 'end')
97 text.insert('end', string)
98 text.update_idletasks() # Force update for colorizer to finish.
99
100
101class IndentAndNewlineTest(unittest.TestCase):

Callers 4

test_list_insertMethod · 0.85
test_insertMethod · 0.85
test_searcherMethod · 0.85

Calls 3

update_idletasksMethod · 0.80
deleteMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…