X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..9176f38f730c3415ac7a911c2f85cdea7eca4478:/wxPython/src/gdi.i diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index 75400d5a21..117e370581 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -18,7 +18,6 @@ #include "wx/wxPython/wxPython.h" #include "wx/wxPython/pyclasses.h" - DECLARE_DEF_STRING(EmptyString); %} //--------------------------------------------------------------------------- @@ -26,13 +25,14 @@ %import core.i %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); -// GDI +// Include all the files that make up this module + %include _gdiobj.i %include _colour.i %include _palette.i @@ -51,4 +51,9 @@ //--------------------------------------------------------------------------- +%init %{ + // Work around a chicken/egg problem in drawlist.cpp + wxPyDrawList_SetAPIPtr(); +%} + //---------------------------------------------------------------------------