X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0fbf24ba6abc81db66ead334d69af670a8ec5a7..f0c20d947b3cc411c3c19d1ad1e507419d167fd7:/wxPython/src/_extras.py diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py index f52dadab80..6f61d91b81 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) @@ -783,7 +789,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)