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

Method __init__

Lib/idlelib/sidebar.py:364–371  ·  view source on GitHub ↗

callback - Callable, will be called when an insert, delete or replace action on the text widget may require updating the shell sidebar.

(self, callback)

Source from the content-addressed store, hash-verified

362
363class WrappedLineHeightChangeDelegator(Delegator):
364 def __init__(self, callback):
365 """
366 callback - Callable, will be called when an insert, delete or replace
367 action on the text widget may require updating the shell
368 sidebar.
369 """
370 Delegator.__init__(self)
371 self.callback = callback
372
373 def insert(self, index, chars, tags=None):
374 is_single_line = '\n' not in chars

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected