// 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
// 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
%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
wxID_HIGHEST,
- wxACCEL_ALT,
- wxACCEL_CTRL,
- wxACCEL_SHIFT,
- wxACCEL_NORMAL,
-
wxPD_AUTO_HIDE,
wxPD_APP_MODAL,
wxPD_CAN_ABORT,