Add properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,6 +147,8 @@ public:
|
||||
wxPalette CreateDefaultPalette();
|
||||
wxPalette* GetPalette();
|
||||
#endif
|
||||
|
||||
%property(Context, GetContext, doc="See `GetContext`");
|
||||
};
|
||||
|
||||
|
||||
|
@@ -120,6 +120,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):
|
||||
|
@@ -119,6 +119,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):
|
||||
|
@@ -136,6 +136,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):
|
||||
|
Reference in New Issue
Block a user