projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxURI/wxURL links in changes list.
[wxWidgets.git]
/
wxPython
/
src
/
gdi.i
diff --git
a/wxPython/src/gdi.i
b/wxPython/src/gdi.i
index 75400d5a21f83873aca9255da7ee5ee2ceb22e9f..9b0078e018f65c87e6e5e00c013fdeddcb341914 100644
(file)
--- a/
wxPython/src/gdi.i
+++ b/
wxPython/src/gdi.i
@@
-10,7
+10,7
@@
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-%module
gdi
+%module
(package="wx") _
gdi
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@
-18,21
+18,21
@@
#include "wx/wxPython/wxPython.h"
#include "wx/wxPython/pyclasses.h"
#include "wx/wxPython/wxPython.h"
#include "wx/wxPython/pyclasses.h"
- DECLARE_DEF_STRING(EmptyString);
%}
//---------------------------------------------------------------------------
%import core.i
%}
//---------------------------------------------------------------------------
%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
%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();
+%}
+
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------