/////////////////////////////////////////////////////////////////////////////
-%module glcanvas
+%define DOCSTRING
+"`GLCanvas` provides an OpenGL Context on a `wx.Window`."
+%enddef
+
+%module(package="wx", docstring=DOCSTRING) glcanvas
%{
#include "wx/wxPython/wxPython.h"
%import core.i
%pythoncode { wx = _core }
-%pythoncode { __docfilter__ = wx.__docfilter__ }
+%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
MAKE_CONST_WXSTRING2(GLCanvasNameStr, wxT("GLCanvas"));
//---------------------------------------------------------------------------
+MustHaveApp(wxGLContext);
+
class wxGLContext : public wxObject {
public:
#ifndef __WXMAC__
+MustHaveApp(wxGLCanvas);
+
class wxGLCanvas : public wxWindow {
public:
%pythonAppend wxGLCanvas "self._setOORInfo(self)"