git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33826
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
valueWindow = TestValueWindow(splitter, style=wx.NO_BORDER)
- splitter.SplitVertically(tree, valueWindow, 150)
+ wx.CallAfter(splitter.SplitVertically, tree, valueWindow, 150)
scroller.SetTargetWindow(tree)
scroller.EnableScrolling(False, False)
if item:
self.log.WriteText("OnLeftDClick: %s\n" % self.tree.GetItemText(item))
parent = self.tree.GetItemParent(item)
- self.tree.SortChildren(parent)
+ if parent.IsOk():
+ self.tree.SortChildren(parent)
event.Skip()