# Expanded container (must have children)
elif tree.IsExpanded(selected) and tree.GetChildrenCount(selected, False):
# Insert as first child
- nextItem = tree.GetFirstChild(selected, 0)[0]
+ nextItem = tree.GetFirstChild(selected)[0]
parentLeaf = selected
else:
# No children or unexpanded item - appendChild stays True
# Expanded container (must have children)
elif tree.shift and tree.IsExpanded(selected) \
and tree.GetChildrenCount(selected, False):
- nextItem = tree.GetFirstChild(selected, 0)[0]
+ nextItem = tree.GetFirstChild(selected)[0]
parentLeaf = selected
else:
nextItem = wxTreeItemId()
xxx = MakeXXXFromDOM(parentXXX, elem)
# Update parent in child objects
if tree.ItemHasChildren(selected):
- i, cookie = tree.GetFirstChild(selected, 0)
+ i, cookie = tree.GetFirstChild(selected)
while i.IsOk():
x = tree.GetPyData(i)
x.parent = xxx
def main():
app = App(0, useBestVisual=False)
+ #app.SetAssertMode(wxPYAPP_ASSERT_LOG)
app.MainLoop()
app.OnExit()
global conf