X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3fbed81b2165fddbbf2ee7eddd6089b62db3692..b59da6c285f4ac1a52a879a7fa67b52351f08f34:/wxPython/src/wx.i diff --git a/wxPython/src/wx.i b/wxPython/src/wx.i index da1553eb92..b052ac0dcc 100644 --- a/wxPython/src/wx.i +++ b/wxPython/src/wx.i @@ -17,6 +17,11 @@ #include "helpers.h" %} +// %pragma(python) code=" +// # This gives this module's dictionary to the C++ extension code... +// wxc._wxSetDictionary(vars()) +// " + //---------------------------------------------------------------------- // This is where we include the other wrapper definition files for SWIG //---------------------------------------------------------------------- @@ -112,6 +117,8 @@ public: } %} + + //---------------------------------------------------------------------- // this is used to cleanup after wxWindows when Python shuts down. @@ -161,8 +168,9 @@ static wxPyCoreAPI API = { SWIG_addvarlink, SWIG_newvarlink, - wxPySaveThread, - wxPyRestoreThread, + wxPyBeginBlockThreads, + wxPyEndBlockThreads, + wxPyConstructObject, wxPy_ConvertList, @@ -181,7 +189,7 @@ static wxPyCoreAPI API = { wxRect_helper, wxColour_helper, - wxPyCBH_setSelf, + wxPyCBH_setCallbackInfo, wxPyCBH_findCallback, wxPyCBH_callCallback, wxPyCBH_callCallbackObj, @@ -189,7 +197,9 @@ static wxPyCoreAPI API = { wxPyClassExists, wxPyMake_wxObject, + wxPyMake_wxSizer, wxPyPtrTypeMap_Add, + wxArrayString2PyList_helper };