one more fix for tree selection

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky 2005-08-10 15:57:23 +00:00
parent 83173c7a4d
commit a24d7726e6

View File

@ -972,7 +972,7 @@ class XML_Tree(wxTreeCtrl):
# Override to use like single-selection tree
def GetSelection(self):
self.GetSelections(self)[:1]
return self.selection
def SelectItem(self, item):
self.UnselectAll()
self.ChangeSelection(item)