]> git.saurik.com Git - wxWidgets.git/commitdiff
new wxTreeEvent ctor
authorRobin Dunn <robin@alldunn.com>
Tue, 27 Jun 2006 22:46:34 +0000 (22:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 27 Jun 2006 22:46:34 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_treectrl.i

index a8e211f8fbd8667195a1d89ffc7b025d6bea865b..190c189182571b0af50b766136390e56aec8c7ee 100644 (file)
@@ -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