]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_defs.i
some docstring changes
[wxWidgets.git] / wxPython / src / _defs.i
index c417cc6e9fbe15c46532106e4d87bb2f8c2799ce..a7e862a5158feb7e7115b2d0cef4f90fc4bb0951 100644 (file)
 
 // This one will turn off the generation of the thread wrapper code
 %define %threadWrapperOff
-%exception 
+%exception {
+    $action
+    if (PyErr_Occurred()) SWIG_fail;
+}
 %enddef
 
 // Turn it on by default
@@ -74,7 +77,7 @@
 
 
 // This macro can be used to disable the releasing of the GIL when calling the
-// C++ function.
+// C++ function.  This is like using threadWrapperOff for just this function.
 %define KeepGIL(name)
 %exception name {
     $action
@@ -155,6 +158,11 @@ typedef unsigned long   wxUIntPtr;
 %typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));";
 
 
+%define %property(NAME, STUFF...)
+    %pythoncode {
+        NAME = property(STUFF)
+    }
+%enddef
 
 //----------------------------------------------------------------------
 // Macros for the docstring and autodoc features of SWIG.  These will
@@ -684,11 +692,6 @@ enum {
    
     wxID_HIGHEST,
 
-    wxACCEL_ALT,
-    wxACCEL_CTRL,
-    wxACCEL_SHIFT,
-    wxACCEL_NORMAL,
-
     wxPD_AUTO_HIDE,
     wxPD_APP_MODAL,
     wxPD_CAN_ABORT,