Aquire the GIL before raising the NotImplementedError exception
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user