X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/496e3c3c02c422d50116d35dc0528162484a4c51..846b11857e328bd01ae377e419107d2ff08339f3:/wxPython/src/_defs.i diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index b9b3c361c9..1aa7ff32b0 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -54,7 +54,10 @@ // 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,9 @@ 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 @@ -593,6 +599,7 @@ enum { wxID_HELP, wxID_PRINT, wxID_PRINT_SETUP, + wxID_PAGE_SETUP, wxID_PREVIEW, wxID_ABOUT, wxID_HELP_CONTENTS, @@ -604,6 +611,7 @@ enum { wxID_CLOSE_ALL, wxID_PREFERENCES, + wxID_EDIT, wxID_CUT, wxID_COPY, wxID_PASTE, @@ -626,6 +634,7 @@ enum { wxID_VIEW_SORTSIZE, wxID_VIEW_SORTTYPE, + wxID_FILE, wxID_FILE1, wxID_FILE2, wxID_FILE3, @@ -683,20 +692,6 @@ enum { wxID_HIGHEST, - wxACCEL_ALT, - wxACCEL_CTRL, - wxACCEL_SHIFT, - wxACCEL_NORMAL, - - wxPD_AUTO_HIDE, - wxPD_APP_MODAL, - wxPD_CAN_ABORT, - wxPD_ELAPSED_TIME, - wxPD_ESTIMATED_TIME, - wxPD_REMAINING_TIME, - wxPD_SMOOTH, - wxPD_CAN_SKIP, - wxMENU_TEAROFF, wxMB_DOCKABLE, wxNO_FULL_REPAINT_ON_RESIZE, @@ -1215,6 +1210,14 @@ enum wxUpdateUI }; +enum wxLayoutDirection +{ + wxLayout_Default, + wxLayout_LeftToRight, + wxLayout_RightToLeft +}; + + //---------------------------------------------------------------------------