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:
parent
83173c7a4d
commit
a24d7726e6
@ -972,7 +972,7 @@ class XML_Tree(wxTreeCtrl):
|
|||||||
|
|
||||||
# Override to use like single-selection tree
|
# Override to use like single-selection tree
|
||||||
def GetSelection(self):
|
def GetSelection(self):
|
||||||
self.GetSelections(self)[:1]
|
return self.selection
|
||||||
def SelectItem(self, item):
|
def SelectItem(self, item):
|
||||||
self.UnselectAll()
|
self.UnselectAll()
|
||||||
self.ChangeSelection(item)
|
self.ChangeSelection(item)
|
||||||
|
Loading…
Reference in New Issue
Block a user