diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index e85d989f9a..8438ac2783 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -998,6 +998,7 @@ enum wxEventType { wxEVT_MENU_OPEN, wxEVT_MENU_CLOSE, wxEVT_MENU_HIGHLIGHT, + wxEVT_CONTEXT_MENU, wxEVT_SYS_COLOUR_CHANGED, wxEVT_DISPLAY_CHANGED, wxEVT_SETTING_CHANGED, diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py index 6f61d91b81..708d1fd586 100644 --- a/wxPython/src/_extras.py +++ b/wxPython/src/_extras.py @@ -551,19 +551,6 @@ def EVT_TOGGLEBUTTON(win, id, func): -# Help events -def EVT_HELP(win, id, func): - win.Connect(id, -1, wxEVT_HELP, func) - -def EVT_HELP_RANGE(win, id, id2, func): - win.Connect(id, id2, wxEVT_HELP, func) - -def EVT_DETAILED_HELP(win, id, func): - win.Connect(id, -1, wxEVT_DETAILED_HELP, func) - -def EVT_DETAILED_HELP_RANGE(win, id, id2, func): - win.Connect(id, id2, wxEVT_DETAILED_HELP, func) - def EVT_CONTEXT_MENU(win, func): win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func) diff --git a/wxPython/src/help.i b/wxPython/src/help.i index 634058fd2c..f7f6c5a7be 100644 --- a/wxPython/src/help.i +++ b/wxPython/src/help.i @@ -37,7 +37,6 @@ enum { wxID_CONTEXT_HELP, wxEVT_HELP, wxEVT_DETAILED_HELP, - wxEVT_CONTEXT_MENU, }; @@ -54,9 +53,6 @@ def EVT_DETAILED_HELP(win, id, func): def EVT_DETAILED_HELP_RANGE(win, id, id2, func): win.Connect(id, id2, wxEVT_DETAILED_HELP, func) - -def EVT_CONTEXT_MENU(win, func): - win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func) " //---------------------------------------------------------------------- diff --git a/wxPython/src/wx.i b/wxPython/src/wx.i index 05a1360777..d9f79e7041 100644 --- a/wxPython/src/wx.i +++ b/wxPython/src/wx.i @@ -12,7 +12,6 @@ %module wx - %{ #include "helpers.h" %}