drag-and-drop with left button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -501,7 +501,7 @@ class XML_Tree(wx.TreeCtrl):
|
||||
# Register events
|
||||
wx.EVT_TREE_SEL_CHANGED(self, self.GetId(), self.OnSelChanged)
|
||||
# One works on Linux, another on Windows
|
||||
if wx.Platform == '__WXGTK__':
|
||||
if wx.Platform == '__WXGTK__': # !!! MAC too?
|
||||
wx.EVT_TREE_ITEM_ACTIVATED(self, self.GetId(), self.OnItemActivated)
|
||||
else:
|
||||
wx.EVT_LEFT_DCLICK(self, self.OnDClick)
|
||||
|
||||
Reference in New Issue
Block a user