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

Method insert

Lib/idlelib/colorizer.py:187–191  ·  view source on GitHub ↗

Insert chars into widget at index and mark for colorizing.

(self, index, chars, tags=None)

Source from the content-addressed store, hash-verified

185 if DEBUG: print('tagdefs', self.tagdefs)
186
187 def insert(self, index, chars, tags=None):
188 "Insert chars into widget at index and mark for colorizing."
189 index = self.index(index)
190 self.delegate.insert(index, chars, tags)
191 self.notify_range(index, index + "+%dc" % len(chars))
192
193 def delete(self, index1, index2=None):
194 "Delete chars between indexes and mark for colorizing."

Callers

nothing calls this directly

Calls 2

notify_rangeMethod · 0.95
indexMethod · 0.45

Tested by

no test coverage detected