%feature("nodefaultdtor");
#endif
+// For all items that don't have a %rename already, give them a %rename that
+// removes the leading 'wx' (except for wxEVT_* items.)
+%rename("%(wxpy)s") "";
+
// For now, just supress the warning about using Python keywords as parameter
// names. Will need to come back later and correct these rather than just
// hide them...
}
%enddef
-
+// This macro can be used to disable the releasing of the GIL when calling the
+// C++ function.
+%define KeepGIL(name)
+%exception name {
+ $action
+ if (PyErr_Occurred()) SWIG_fail;
+}
+%enddef
+
//---------------------------------------------------------------------------
// some type definitions to simplify things for SWIG
#define %disownarg(typespec) %typemap(in) typespec = SWIGTYPE* DISOWN
#define %cleardisown(typespec) %typemap(in) typespec
+#define %ref %feature("ref")
+#define %unref %feature("unref")
#ifndef %pythoncode
wxRB_USE_CHECKBOX,
wxST_SIZEGRIP,
wxST_NO_AUTORESIZE,
-
+ wxST_DOTS_MIDDLE,
+ wxST_DOTS_END,
+
wxFLOOD_SURFACE,
wxFLOOD_BORDER,
wxODDEVEN_RULE,
wxDD_NEW_DIR_BUTTON,
wxDD_DEFAULT_STYLE,
-
+ wxDD_CHANGE_DIR,
+
wxMENU_TEAROFF,
wxMB_DOCKABLE,
wxNO_FULL_REPAINT_ON_RESIZE,