X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/wxPython/src/wx.i diff --git a/wxPython/src/wx.i b/wxPython/src/wx.i index 1228022e2c..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. @@ -190,7 +197,9 @@ static wxPyCoreAPI API = { wxPyClassExists, wxPyMake_wxObject, + wxPyMake_wxSizer, wxPyPtrTypeMap_Add, + wxArrayString2PyList_helper };