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

Method remove

cocoa/src/toga_cocoa/widgets/tree.py:234–242  ·  view source on GitHub ↗
(self, index, item, parent=None)

Source from the content-addressed store, hash-verified

232 # March 2026: In 0.5.3 and earlier, notification methods
233 # didn't start with 'source_'
234 def remove(self, index, item, parent=None):
235 import warnings
236
237 warnings.warn(
238 "The remove() method is deprecated. Use source_remove() instead.",
239 DeprecationWarning,
240 stacklevel=1,
241 )
242 self.source_remove(index=index, item=item, parent=parent)
243
244 def source_remove(self, *, index, item, parent=None):
245 try:

Callers 7

remove_menu_itemMethod · 0.45
purge_toolbarMethod · 0.45
close_windowMethod · 0.45
photo_takenMethod · 0.45
remove_columnMethod · 0.45
set_option_enabledMethod · 0.45
_removeInputMethod · 0.45

Calls 2

source_removeMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected