MCPcopy
hub / github.com/beeware/toga / insert

Method insert

cocoa/src/toga_cocoa/widgets/detailedlist.py:184–192  ·  view source on GitHub ↗
(self, index, item)

Source from the content-addressed store, hash-verified

182 # March 2026: In 0.5.3 and earlier, notification methods
183 # didn't start with 'source_'
184 def insert(self, index, item):
185 import warnings
186
187 warnings.warn(
188 "The insert() method is deprecated. Use source_insert() instead.",
189 DeprecationWarning,
190 stacklevel=1,
191 )
192 self.source_insert(index=index, item=item)
193
194 def source_insert(self, *, index, item):
195 self.native_detailedlist.reloadData()

Callers

nothing calls this directly

Calls 2

source_insertMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected