X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2dc104421c340091342156d6b01f61f1ccff438..8da2ab99009877d864c19b1ad90a9c0d02c61e2e:/wxPython/src/_functions.i diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 8abf2a31c8..aa33a105b9 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -52,7 +52,7 @@ long wxGetFreeMemory(); #else %inline %{ long wxGetFreeMemory() - { PyErr_SetNone(PyExc_NotImplementedError); return 0; } + { wxPyRaiseNotImplemented(); return 0; } %} #endif @@ -214,6 +214,11 @@ wxWindow* wxGetTopLevelParent(wxWindow *win); // This is generally most useful getting the state of // Caps Lock, Num Lock and Scroll Lock... bool wxGetKeyState(wxKeyCode key); +#else +%inline %{ + bool wxGetKeyState(wxKeyCode key) + { wxPyRaiseNotImplemented(); return False; } +%} #endif