new wxTreeEvent ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-06-27 22:46:34 +00:00
parent 6eed24bf78
commit e0c068c0e8

View 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 // 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 // descriptions below
class wxTreeEvent : public wxNotifyEvent { class wxTreeEvent : public wxNotifyEvent {
public: public:
%nokwargs wxTreeEvent;
wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); 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 // get the item on which the operation was performed or the newly
// selected item for wxEVT_COMMAND_TREE_SEL_CHANGED/ING events // selected item for wxEVT_COMMAND_TREE_SEL_CHANGED/ING events