reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-05-10 23:12:34 +00:00
parent 4a692286ca
commit 01f6b6d3c8
18 changed files with 1105 additions and 455 deletions

View File

@@ -173,7 +173,7 @@ class XmlResource(_core.Object):
return _xrc.XmlResource_AttachUnknownControl(*args, **kwargs)
def GetXRCID(*args, **kwargs):
"""GetXRCID(String str_id) -> int"""
"""GetXRCID(wxChar str_id, int value_if_not_found=ID_NONE) -> int"""
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
GetXRCID = staticmethod(GetXRCID)
@@ -225,7 +225,7 @@ def XmlResource_AddSubclassFactory(*args, **kwargs):
return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
def XmlResource_GetXRCID(*args, **kwargs):
"""XmlResource_GetXRCID(String str_id) -> int"""
"""XmlResource_GetXRCID(wxChar str_id, int value_if_not_found=ID_NONE) -> int"""
return _xrc.XmlResource_GetXRCID(*args, **kwargs)
def XmlResource_Get(*args):
@@ -236,8 +236,8 @@ def XmlResource_Set(*args, **kwargs):
"""XmlResource_Set(XmlResource res) -> XmlResource"""
return _xrc.XmlResource_Set(*args, **kwargs)
def XRCID(str_id):
return XmlResource_GetXRCID(str_id)
def XRCID(str_id, value_if_not_found = wx.ID_NONE):
return XmlResource_GetXRCID(str_id, value_if_not_found)
def XRCCTRL(window, str_id, *ignoreargs):
return window.FindWindowById(XRCID(str_id))