Test EVT_TREE_ITEM_ACTIVATED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b4aa9fec65
commit
c0a4dfbb0a
@ -75,6 +75,11 @@ class TestPanel(wx.Panel):
|
|||||||
self.tree.Expand(self.root)
|
self.tree.Expand(self.root)
|
||||||
|
|
||||||
self.tree.GetMainWindow().Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
|
self.tree.GetMainWindow().Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
|
||||||
|
self.tree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivate)
|
||||||
|
|
||||||
|
|
||||||
|
def OnActivate(self, evt):
|
||||||
|
self.log.write('OnActivate: %s' % self.tree.GetItemText(evt.GetItem()))
|
||||||
|
|
||||||
|
|
||||||
def OnRightUp(self, evt):
|
def OnRightUp(self, evt):
|
||||||
|
Loading…
Reference in New Issue
Block a user