some bugs in the demo fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-04-22 14:30:03 +00:00
parent 3afdfec453
commit 4b7887a953
2 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class TestPanel(wx.Panel):
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)

View File

@ -146,7 +146,8 @@ class TestTreeCtrlPanel(wx.Panel):
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()