]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/glcanvas/gtk/glcanvas.py
fixed memory leaks when reading invalid GIFs
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
index add8bf8b29fdc44221e122c1acafa216ac785b78..550270f00fb4a9251c91f40b3047e5c4b6d1d6ce 100644 (file)
@@ -104,9 +104,12 @@ class GLCanvas(_core.Window):
         _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
         self._setOORInfo(self)
 
-    def SetCurrent(*args, **kwargs):
-        """SetCurrent(self, GLContext RC)"""
-        return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
+    def SetCurrent(*args):
+        """
+        SetCurrent(self)
+        SetCurrent(self, GLContext RC)
+        """
+        return _glcanvas.GLCanvas_SetCurrent(*args)
 
     def SetColour(*args, **kwargs):
         """SetColour(self, String colour)"""
@@ -120,6 +123,7 @@ class GLCanvas(_core.Window):
         """GetContext(self) -> GLContext"""
         return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
 
+    Context = property(GetContext,doc="See `GetContext`") 
 _glcanvas.GLCanvas_swigregister(GLCanvas)
 
 def GLCanvasWithContext(*args, **kwargs):