Add properties

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-09-26 00:26:35 +00:00
parent 4627af27d4
commit e70b4d2db9
50 changed files with 1799 additions and 249 deletions

View File

@@ -147,6 +147,8 @@ public:
wxPalette CreateDefaultPalette();
wxPalette* GetPalette();
#endif
%property(Context, GetContext, doc="See `GetContext`");
};

View File

@@ -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):

View File

@@ -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):

View File

@@ -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):