]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gdi.i
Added wxDisplay and wxVideoMode
[wxWidgets.git] / wxPython / src / gdi.i
index 75400d5a21f83873aca9255da7ee5ee2ceb22e9f..117e3705811e348d5bc82d8138a10bf0982c6f9d 100644 (file)
@@ -18,7 +18,6 @@
 #include "wx/wxPython/wxPython.h"
 #include "wx/wxPython/pyclasses.h"
     
-    DECLARE_DEF_STRING(EmptyString);
 %}
 
 //---------------------------------------------------------------------------
 %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();
+%}
+
 //---------------------------------------------------------------------------