From e0c068c0e8ec729076e4f47fe95e81d5cb351dda Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 27 Jun 2006 22:46:34 +0000 Subject: [PATCH] new wxTreeEvent ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_treectrl.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wxPython/src/_treectrl.i b/wxPython/src/_treectrl.i index a8e211f8fb..190c189182 100644 --- a/wxPython/src/_treectrl.i +++ b/wxPython/src/_treectrl.i @@ -223,6 +223,11 @@ EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, } +%{ + static wxTreeItemId wxNullTreeItemId; +%} +wxTreeItemId wxNullTreeItemId; + // wxTreeEvent is a special class for all events associated with tree controls // @@ -230,7 +235,11 @@ EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, // descriptions below class wxTreeEvent : public wxNotifyEvent { public: + %nokwargs wxTreeEvent; wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); + wxTreeEvent(wxEventType commandType, + wxPyTreeCtrl* tree, + wxTreeItemId& item = wxNullTreeItemId); // get the item on which the operation was performed or the newly // selected item for wxEVT_COMMAND_TREE_SEL_CHANGED/ING events