MCPcopy
hub / github.com/flet-dev/flet / insert

Method insert

sdk/python/packages/flet/src/flet/controls/base_page.py:342–350  ·  view source on GitHub ↗

Inserts controls at specific index of `page.controls` list.

(self, at: int, *controls: Control)

Source from the content-addressed store, hash-verified

340 self.update()
341
342 def insert(self, at: int, *controls: Control) -> None:
343 """
344 Inserts controls at specific index of `page.controls` list.
345 """
346 n = at
347 for c in controls:
348 self.controls.insert(n, c)
349 n += 1
350 self.update()
351
352 def remove(self, *controls: Control) -> None:
353 """

Callers 15

set_default_subparserFunction · 0.45
appFunction · 0.45
app_asyncFunction · 0.45
_insert_messageMethod · 0.45
test_simple_pageFunction · 0.45
test_list_insertionsFunction · 0.45
move_to_listMethod · 0.45
move_listMethod · 0.45
drag_reorderMethod · 0.45
move_groupMethod · 0.45

Calls 1

updateMethod · 0.95

Tested by 3

test_simple_pageFunction · 0.36
test_list_insertionsFunction · 0.36