X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8fac2b60de05657e9f3b0b0b511f57a77eb388a..ad3fca675f77c2903cafd096bbda8baa2e7689ff:/wxPython/contrib/glcanvas/glcanvas.i diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index 9892e2751a..5c44932c06 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -14,7 +14,8 @@ %define DOCSTRING "`GLCanvas` provides an OpenGL Context on a `wx.Window`." %enddef -%module(docstring=DOCSTRING) glcanvas + +%module(package="wx", docstring=DOCSTRING) glcanvas %{ #include "wx/wxPython/wxPython.h" @@ -43,6 +44,8 @@ class wxPalette; //--------------------------------------------------------------------------- +MustHaveApp(wxGLContext); + class wxGLContext : public wxObject { public: #ifndef __WXMAC__ @@ -118,6 +121,8 @@ enum { +MustHaveApp(wxGLCanvas); + class wxGLCanvas : public wxWindow { public: %pythonAppend wxGLCanvas "self._setOORInfo(self)"