]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_functions.i
Beginings of wxX11 support. Much more to do but I have no more time
[wxWidgets.git] / wxPython / src / _functions.i
index 8abf2a31c877f95a1ea1cacd698a0ac093d88678..aa33a105b9fe51395ec9e05306aa946231777417 100644 (file)
@@ -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