X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..69d818954b5e6e7b4b4e5093dd26dbe2d5f8546c:/wxPython/contrib/glcanvas/glcanvas.i diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index 826f0c071f..6f6f3708fa 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -19,8 +19,6 @@ #include - static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas")); - static const wxString wxPyEmptyString(wxT("")); %} //--------------------------------------------------------------------------- @@ -28,6 +26,11 @@ %import core.i %pythoncode { wx = core } + +MAKE_CONST_WXSTRING2(GLCanvasNameStr, wxT("GLCanvas")); +MAKE_CONST_WXSTRING_NOSWIG(EmptyString); + + %include _glcanvas_rename.i //--------------------------------------------------------------------------- @@ -113,7 +116,7 @@ enum { class wxGLCanvas : public wxWindow { public: - %addtofunc wxGLCanvas "self._setOORInfo(self)" + %pythonAppend wxGLCanvas "self._setOORInfo(self)" wxGLCanvas(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, @@ -121,8 +124,8 @@ public: int *attribList = NULL, const wxPalette& palette = wxNullPalette); - %addtofunc wxGLCanvas "val._setOORInfo(val)" - %name(wxGLCanvasWithContext) + %pythonAppend wxGLCanvas "val._setOORInfo(val)" + %name(GLCanvasWithContext) wxGLCanvas( wxWindow *parent, const wxGLContext *shared = NULL, wxWindowID id = -1,