X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..85ac8ca017a0409e9762ed305ccc1d32a7c28fa7:/wxPython/src/gdi.i diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index 79c9c82caf..453b0e9f8e 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -10,7 +10,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -%module gdi +%module _gdi //--------------------------------------------------------------------------- @@ -18,21 +18,21 @@ #include "wx/wxPython/wxPython.h" #include "wx/wxPython/pyclasses.h" - DECLARE_DEF_STRING(EmptyString); %} //--------------------------------------------------------------------------- %import core.i -%pythoncode { wx = core } +%pythoncode { wx = _core } +%include __gdi_rename.i -// Include all the files that make up this module -%include _gdi_rename.i +MAKE_CONST_WXSTRING_NOSWIG(EmptyString); + +// Include all the files that make up this module -// GDI %include _gdiobj.i %include _colour.i %include _palette.i @@ -47,9 +47,13 @@ %include _dc.i %include _imaglist.i %include _stockobjs.i -%include _dragimg.i %include _effects.i //--------------------------------------------------------------------------- +%init %{ + // Work around a chicken/egg problem in drawlist.cpp + wxPyDrawList_SetAPIPtr(); +%} + //---------------------------------------------------------------------------