X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/97ab0f6ab4898d6ee1e2cad716643cabe40e3268..c079af66c8fb4a2f68f33c6d3940b8ad8ec98f27:/wxPython/contrib/glcanvas/msw/glcanvas.py diff --git a/wxPython/contrib/glcanvas/msw/glcanvas.py b/wxPython/contrib/glcanvas/msw/glcanvas.py index 4460eec341..55eb961e27 100644 --- a/wxPython/contrib/glcanvas/msw/glcanvas.py +++ b/wxPython/contrib/glcanvas/msw/glcanvas.py @@ -97,16 +97,21 @@ class GLCanvas(_core.Window): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, - int attribList=None, Palette palette=wxNullPalette) -> GLCanvas + __init__(self, Window parent, int id=-1, int attribList=None, Point pos=DefaultPosition, + Size size=DefaultSize, + long style=0, String name=GLCanvasNameStr, Palette palette=wxNullPalette) -> GLCanvas """ _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 Create(*args, **kwargs): + """ + Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, + Size size=DefaultSize, long style=0, String name=wxGLCanvasName, + int attribList=None, + Palette palette=wxNullPalette) -> bool + """ + return _glcanvas.GLCanvas_Create(*args, **kwargs) def SetColour(*args, **kwargs): """SetColour(self, String colour)""" @@ -120,9 +125,12 @@ class GLCanvas(_core.Window): """GetContext(self) -> GLContext""" return _glcanvas.GLCanvas_GetContext(*args, **kwargs) - def SetupPixelFormat(*args, **kwargs): - """SetupPixelFormat(self, int attribList=None)""" - return _glcanvas.GLCanvas_SetupPixelFormat(*args, **kwargs) + def SetCurrent(*args): + """ + SetCurrent(self, GLContext context) + SetCurrent(self) + """ + return _glcanvas.GLCanvas_SetCurrent(*args) def SetupPalette(*args, **kwargs): """SetupPalette(self, Palette palette)""" @@ -136,6 +144,7 @@ class GLCanvas(_core.Window): """GetPalette(self) -> Palette""" return _glcanvas.GLCanvas_GetPalette(*args, **kwargs) + Context = property(GetContext,doc="See `GetContext`") _glcanvas.GLCanvas_swigregister(GLCanvas) def GLCanvasWithContext(*args, **kwargs):