X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/196addbfe0f00b96fdeff1f6f29dae33cf95d071..0d267606ff0b2acebe59ef6aeab98b01ee67eb6b:/wxPython/contrib/xrc/xrc.py?ds=inline diff --git a/wxPython/contrib/xrc/xrc.py b/wxPython/contrib/xrc/xrc.py index 99670dae82..46dc524566 100644 --- a/wxPython/contrib/xrc/xrc.py +++ b/wxPython/contrib/xrc/xrc.py @@ -55,7 +55,7 @@ class XmlResource(core.Object): return _xrc.XmlResource_ClearHandlers(*args, **kwargs) def AddSubclassFactory(*args, **kwargs): - """XmlResource.AddSubclassFactory(XmlSubclassFactory factory)""" + """AddSubclassFactory(XmlSubclassFactory factory)""" return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs) AddSubclassFactory = staticmethod(AddSubclassFactory) @@ -112,7 +112,7 @@ class XmlResource(core.Object): return _xrc.XmlResource_LoadBitmap(*args, **kwargs) def LoadIcon(*args, **kwargs): - """LoadIcon(String name) -> wxIcon""" + """LoadIcon(String name) -> Icon""" return _xrc.XmlResource_LoadIcon(*args, **kwargs) def AttachUnknownControl(*args, **kwargs): @@ -120,7 +120,7 @@ class XmlResource(core.Object): return _xrc.XmlResource_AttachUnknownControl(*args, **kwargs) def GetXRCID(*args, **kwargs): - """XmlResource.GetXRCID(String str_id) -> int""" + """GetXRCID(String str_id) -> int""" return _xrc.XmlResource_GetXRCID(*args, **kwargs) GetXRCID = staticmethod(GetXRCID) @@ -133,12 +133,12 @@ class XmlResource(core.Object): return _xrc.XmlResource_CompareVersion(*args, **kwargs) def Get(*args, **kwargs): - """XmlResource.Get() -> XmlResource""" + """Get() -> XmlResource""" return _xrc.XmlResource_Get(*args, **kwargs) Get = staticmethod(Get) def Set(*args, **kwargs): - """XmlResource.Set(XmlResource res) -> XmlResource""" + """Set(XmlResource res) -> XmlResource""" return _xrc.XmlResource_Set(*args, **kwargs) Set = staticmethod(Set) @@ -157,6 +157,14 @@ class XmlResourcePtr(XmlResource): if not hasattr(self,"thisown"): self.thisown = 0 self.__class__ = XmlResource _xrc.XmlResource_swigregister(XmlResourcePtr) +cvar = _xrc.cvar +UTF8String = cvar.UTF8String +StyleString = cvar.StyleString +SizeString = cvar.SizeString +PosString = cvar.PosString +BitmapString = cvar.BitmapString +IconString = cvar.IconString +FontString = cvar.FontString def EmptyXmlResource(*args, **kwargs): """EmptyXmlResource(int flags=XRC_USE_LOCALE) -> XmlResource""" @@ -396,7 +404,7 @@ class XmlDocument(core.Object): def __repr__(self): return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) def __init__(self, *args, **kwargs): - """__init__(String filename, String encoding=wxPyUTF8String) -> XmlDocument""" + """__init__(String filename, String encoding=UTF8String) -> XmlDocument""" newobj = _xrc.new_XmlDocument(*args, **kwargs) self.this = newobj.this self.thisown = 1 @@ -408,11 +416,11 @@ class XmlDocument(core.Object): except: pass def Load(*args, **kwargs): - """Load(String filename, String encoding=wxPyUTF8String) -> bool""" + """Load(String filename, String encoding=UTF8String) -> bool""" return _xrc.XmlDocument_Load(*args, **kwargs) def LoadFromStream(*args, **kwargs): - """LoadFromStream(InputStream stream, String encoding=wxPyUTF8String) -> bool""" + """LoadFromStream(InputStream stream, String encoding=UTF8String) -> bool""" return _xrc.XmlDocument_LoadFromStream(*args, **kwargs) def Save(*args, **kwargs): @@ -460,7 +468,7 @@ class XmlDocumentPtr(XmlDocument): _xrc.XmlDocument_swigregister(XmlDocumentPtr) def XmlDocumentFromStream(*args, **kwargs): - """XmlDocumentFromStream(InputStream stream, String encoding=wxPyUTF8String) -> XmlDocument""" + """XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument""" val = _xrc.new_XmlDocumentFromStream(*args, **kwargs) val.thisown = 1 return val @@ -553,7 +561,7 @@ class XmlResourceHandler(core.Object): return _xrc.XmlResourceHandler_AddWindowStyles(*args, **kwargs) def GetStyle(*args, **kwargs): - """GetStyle(String param=wxPyStyleString, int defaults=0) -> int""" + """GetStyle(String param=StyleString, int defaults=0) -> int""" return _xrc.XmlResourceHandler_GetStyle(*args, **kwargs) def GetText(*args, **kwargs): @@ -581,11 +589,11 @@ class XmlResourceHandler(core.Object): return _xrc.XmlResourceHandler_GetColour(*args, **kwargs) def GetSize(*args, **kwargs): - """GetSize(String param=wxPySizeString) -> Size""" + """GetSize(String param=SizeString) -> Size""" return _xrc.XmlResourceHandler_GetSize(*args, **kwargs) def GetPosition(*args, **kwargs): - """GetPosition(String param=wxPyPosString) -> Point""" + """GetPosition(String param=PosString) -> Point""" return _xrc.XmlResourceHandler_GetPosition(*args, **kwargs) def GetDimension(*args, **kwargs): @@ -594,20 +602,20 @@ class XmlResourceHandler(core.Object): def GetBitmap(*args, **kwargs): """ - GetBitmap(String param=wxPyBitmapString, wxArtClient defaultArtClient=wxART_OTHER, + GetBitmap(String param=BitmapString, wxArtClient defaultArtClient=wxART_OTHER, Size size=DefaultSize) -> Bitmap """ return _xrc.XmlResourceHandler_GetBitmap(*args, **kwargs) def GetIcon(*args, **kwargs): """ - GetIcon(String param=wxPyIconString, wxArtClient defaultArtClient=wxART_OTHER, - Size size=DefaultSize) -> wxIcon + GetIcon(String param=IconString, wxArtClient defaultArtClient=wxART_OTHER, + Size size=DefaultSize) -> Icon """ return _xrc.XmlResourceHandler_GetIcon(*args, **kwargs) def GetFont(*args, **kwargs): - """GetFont(String param=wxPyFontString) -> Font""" + """GetFont(String param=FontString) -> Font""" return _xrc.XmlResourceHandler_GetFont(*args, **kwargs) def SetupWindow(*args, **kwargs):