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:
parent
3afdfec453
commit
4b7887a953
@ -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)
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user