MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / insert

Method insert

src/com/dtmilano/android/culebron.py:2018–2032  ·  view source on GitHub ↗

Creates a new item and return the item identifier of the newly created item. parent is the item ID of the parent item, or the empty string to create a new top-level item. index is an integer, or the value end, specifying where in the list of paren

(self, parent, index, iid=None, **kw)

Source from the content-addressed store, hash-verified

2016 self.viewTree.xview(*args)
2017
2018 def insert(self, parent, index, iid=None, **kw):
2019 """Creates a new item and return the item identifier of the newly
2020 created item.
2021
2022 parent is the item ID of the parent item, or the empty string
2023 to create a new top-level item. index is an integer, or the value
2024 end, specifying where in the list of parent's children to insert
2025 the new item. If index is less than or equal to zero, the new node
2026 is inserted at the beginning, if index is greater than or equal to
2027 the current number of children, it is inserted at the end. If iid
2028 is specified, it is used as the item identifier, iid must not
2029 already exist in the tree. Otherwise, a new unique identifier
2030 is generated."""
2031
2032 return self.viewTree.insert(parent, index, iid, **kw)
2033
2034 def set(self, item, column=None, value=None):
2035 """With one argument, returns a dictionary of column/value pairs

Callers 15

gfxinfo-plot.pyFile · 0.80
conf.pyFile · 0.80
populateViewTreeMethod · 0.80
findBestCandidateMethod · 0.80
setMethod · 0.80
__init__Method · 0.80
allTests.pyFile · 0.80
plottests.pyFile · 0.80
viewclienttests.pyFile · 0.80
disconnect.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected