X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57b1892fb6e010e66a38ab0ea92886af925fa03b..c6e801d3e6d5c181080d12248aa3fd175c771b09:/wxPython/src/_functions.i diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 241ad3d5fd..aa33a105b9 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -15,11 +15,9 @@ //--------------------------------------------------------------------------- -%{ - DECLARE_DEF_STRING(FileSelectorPromptStr); - DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); - DECLARE_DEF_STRING(DirSelectorPromptStr); -%} +MAKE_CONST_WXSTRING(FileSelectorPromptStr); +MAKE_CONST_WXSTRING(FileSelectorDefaultWildcardStr); +MAKE_CONST_WXSTRING(DirSelectorPromptStr); //--------------------------------------------------------------------------- %newgroup; @@ -54,7 +52,7 @@ long wxGetFreeMemory(); #else %inline %{ long wxGetFreeMemory() - { PyErr_SetNone(PyExc_NotImplementedError); return 0; } + { wxPyRaiseNotImplemented(); return 0; } %} #endif @@ -216,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