X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0fbf24ba6abc81db66ead334d69af670a8ec5a7..935b53f2fb175499ac1a8ed53ccd2b986dcdd43a:/wxPython/src/_extras.py diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py index f52dadab80..708d1fd586 100644 --- a/wxPython/src/_extras.py +++ b/wxPython/src/_extras.py @@ -62,6 +62,12 @@ def EVT_KEY_DOWN(win, func): def EVT_KEY_UP(win, func): win.Connect(-1, -1, wxEVT_KEY_UP, func) +def EVT_MENU_OPEN(win, func): + win.Connect(-1, -1, wxEVT_MENU_OPEN, func) + +def EVT_MENU_CLOSE(win, func): + win.Connect(-1, -1, wxEVT_MENU_CLOSE, func) + def EVT_MENU_HIGHLIGHT(win, id, func): win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func) @@ -545,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) @@ -783,7 +776,7 @@ class __wxPyCleanup: sys.__wxPythonCleanup = __wxPyCleanup() -## # another possible solution, but it gets called too eary... +## # another possible solution, but it gets called too early... ## if sys.version[0] == '2': ## import atexit ## atexit.register(wxc.wxApp_CleanUp)