]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/glcanvas/gtk/glcanvas.py
No need to use wxPyMake_wxObject for wxImageList. There are no
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
index f8acc3a44b5daccfd3a20a818ed62503924ffcab..38f48cc8c25a3466d8594a9634903b3ae1af7a0f 100644 (file)
@@ -63,47 +63,15 @@ class GLContext(_core.Object):
     thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
     __repr__ = _swig_repr
     def __init__(self, *args, **kwargs): 
-        """
-        __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette, 
-            GLContext other=None) -> GLContext
-        """
+        """__init__(self, GLCanvas win, GLContext other=None) -> GLContext"""
         _glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs))
     __swig_destroy__ = _glcanvas.delete_GLContext
     __del__ = lambda self : None;
     def SetCurrent(*args, **kwargs):
-        """SetCurrent(self)"""
+        """SetCurrent(self, GLCanvas win)"""
         return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
 
-    def SetColour(*args, **kwargs):
-        """SetColour(self, String colour)"""
-        return _glcanvas.GLContext_SetColour(*args, **kwargs)
-
-    def SwapBuffers(*args, **kwargs):
-        """SwapBuffers(self)"""
-        return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
-
-    def SetupPixelFormat(*args, **kwargs):
-        """SetupPixelFormat(self)"""
-        return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs)
-
-    def SetupPalette(*args, **kwargs):
-        """SetupPalette(self, wxPalette palette)"""
-        return _glcanvas.GLContext_SetupPalette(*args, **kwargs)
-
-    def CreateDefaultPalette(*args, **kwargs):
-        """CreateDefaultPalette(self) -> wxPalette"""
-        return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs)
-
-    def GetPalette(*args, **kwargs):
-        """GetPalette(self) -> wxPalette"""
-        return _glcanvas.GLContext_GetPalette(*args, **kwargs)
-
-    def GetWindow(*args, **kwargs):
-        """GetWindow(self) -> Window"""
-        return _glcanvas.GLContext_GetWindow(*args, **kwargs)
-
-GLContext_swigregister = _glcanvas.GLContext_swigregister
-GLContext_swigregister(GLContext)
+_glcanvas.GLContext_swigregister(GLContext)
 cvar = _glcanvas.cvar
 GLCanvasNameStr = cvar.GLCanvasNameStr
 
@@ -131,13 +99,13 @@ class GLCanvas(_core.Window):
         """
         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
             Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, 
-            int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
+            int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
         """
         _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
         self._setOORInfo(self)
 
     def SetCurrent(*args, **kwargs):
-        """SetCurrent(self)"""
+        """SetCurrent(self, GLContext RC)"""
         return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
 
     def SetColour(*args, **kwargs):
@@ -152,15 +120,15 @@ class GLCanvas(_core.Window):
         """GetContext(self) -> GLContext"""
         return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
 
-GLCanvas_swigregister = _glcanvas.GLCanvas_swigregister
-GLCanvas_swigregister(GLCanvas)
+    Context = property(GetContext,doc="See `GetContext`") 
+_glcanvas.GLCanvas_swigregister(GLCanvas)
 
 def GLCanvasWithContext(*args, **kwargs):
     """
     GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition, 
         Size size=DefaultSize, 
         long style=0, String name=GLCanvasNameStr, 
-        int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
+        int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
     """
     val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)
     val._setOORInfo(val)