X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..ab1bfcc1a175bc773199c2b64c87e737ad3b9d63:/wxPython/contrib/xrc/xrc.py diff --git a/wxPython/contrib/xrc/xrc.py b/wxPython/contrib/xrc/xrc.py index 79f0b6a62c..46dc524566 100644 --- a/wxPython/contrib/xrc/xrc.py +++ b/wxPython/contrib/xrc/xrc.py @@ -1,560 +1,659 @@ # This file was created automatically by SWIG. -import xrcc +# Don't modify this file, modify the SWIG interface instead. -from misc import * +import _xrc -from misc2 import * +import core +wx = core +#--------------------------------------------------------------------------- -from windows import * +WX_XMLRES_CURRENT_VERSION_MAJOR = _xrc.WX_XMLRES_CURRENT_VERSION_MAJOR +WX_XMLRES_CURRENT_VERSION_MINOR = _xrc.WX_XMLRES_CURRENT_VERSION_MINOR +WX_XMLRES_CURRENT_VERSION_RELEASE = _xrc.WX_XMLRES_CURRENT_VERSION_RELEASE +WX_XMLRES_CURRENT_VERSION_REVISION = _xrc.WX_XMLRES_CURRENT_VERSION_REVISION +XRC_USE_LOCALE = _xrc.XRC_USE_LOCALE +XRC_NO_SUBCLASSING = _xrc.XRC_NO_SUBCLASSING +class XmlResource(core.Object): + def __repr__(self): + return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__(String filemask, int flags=XRC_USE_LOCALE) -> XmlResource""" + newobj = _xrc.new_XmlResource(*args, **kwargs) + self.this = newobj.this + self.thisown = 1 + del newobj.thisown + self.InitAllHandlers() -from gdi import * + def __del__(self, destroy=_xrc.delete_XmlResource): + """__del__()""" + try: + if self.thisown: destroy(self) + except: pass -from fonts import * + def Load(*args, **kwargs): + """Load(String filemask) -> bool""" + return _xrc.XmlResource_Load(*args, **kwargs) -from clip_dnd import * + def LoadFromString(*args, **kwargs): + """LoadFromString(String data) -> bool""" + return _xrc.XmlResource_LoadFromString(*args, **kwargs) -from events import * + def InitAllHandlers(*args, **kwargs): + """InitAllHandlers()""" + return _xrc.XmlResource_InitAllHandlers(*args, **kwargs) -from streams import * + def AddHandler(*args, **kwargs): + """AddHandler(XmlResourceHandler handler)""" + return _xrc.XmlResource_AddHandler(*args, **kwargs) -from utils import * + def InsertHandler(*args, **kwargs): + """InsertHandler(XmlResourceHandler handler)""" + return _xrc.XmlResource_InsertHandler(*args, **kwargs) -from mdi import * + def ClearHandlers(*args, **kwargs): + """ClearHandlers()""" + return _xrc.XmlResource_ClearHandlers(*args, **kwargs) -from frames import * + def AddSubclassFactory(*args, **kwargs): + """AddSubclassFactory(XmlSubclassFactory factory)""" + return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs) -from stattool import * + AddSubclassFactory = staticmethod(AddSubclassFactory) + def LoadMenu(*args, **kwargs): + """LoadMenu(String name) -> Menu""" + return _xrc.XmlResource_LoadMenu(*args, **kwargs) -from controls import * + def LoadMenuBar(*args, **kwargs): + """LoadMenuBar(String name) -> MenuBar""" + return _xrc.XmlResource_LoadMenuBar(*args, **kwargs) -from controls2 import * + def LoadMenuBarOnFrame(*args, **kwargs): + """LoadMenuBarOnFrame(Window parent, String name) -> MenuBar""" + return _xrc.XmlResource_LoadMenuBarOnFrame(*args, **kwargs) -from windows2 import * + def LoadToolBar(*args, **kwargs): + """LoadToolBar(Window parent, String name) -> wxToolBar""" + return _xrc.XmlResource_LoadToolBar(*args, **kwargs) -from cmndlgs import * + def LoadDialog(*args, **kwargs): + """LoadDialog(Window parent, String name) -> wxDialog""" + return _xrc.XmlResource_LoadDialog(*args, **kwargs) -from windows3 import * + def LoadOnDialog(*args, **kwargs): + """LoadOnDialog(wxDialog dlg, Window parent, String name) -> bool""" + return _xrc.XmlResource_LoadOnDialog(*args, **kwargs) -from image import * + def LoadPanel(*args, **kwargs): + """LoadPanel(Window parent, String name) -> wxPanel""" + return _xrc.XmlResource_LoadPanel(*args, **kwargs) -from printfw import * + def LoadOnPanel(*args, **kwargs): + """LoadOnPanel(wxPanel panel, Window parent, String name) -> bool""" + return _xrc.XmlResource_LoadOnPanel(*args, **kwargs) -from sizers import * + def LoadFrame(*args, **kwargs): + """LoadFrame(Window parent, String name) -> wxFrame""" + return _xrc.XmlResource_LoadFrame(*args, **kwargs) -from filesys import * + def LoadOnFrame(*args, **kwargs): + """LoadOnFrame(wxFrame frame, Window parent, String name) -> bool""" + return _xrc.XmlResource_LoadOnFrame(*args, **kwargs) -def XRCID(str_id): - return wxXmlResource_GetXRCID(str_id) + def LoadObject(*args, **kwargs): + """LoadObject(Window parent, String name, String classname) -> Object""" + return _xrc.XmlResource_LoadObject(*args, **kwargs) -def XRCCTRL(window, str_id, *ignoreargs): - return window.FindWindowById(XRCID(str_id)) + def LoadOnObject(*args, **kwargs): + """LoadOnObject(Object instance, Window parent, String name, String classname) -> bool""" + return _xrc.XmlResource_LoadOnObject(*args, **kwargs) -XMLID = XRCID -XMLCTRL = XRCCTRL + def LoadBitmap(*args, **kwargs): + """LoadBitmap(String name) -> Bitmap""" + return _xrc.XmlResource_LoadBitmap(*args, **kwargs) -class wxXmlResourcePtr(wxObjectPtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def __del__(self, delfunc=xrcc.delete_wxXmlResource): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def Load(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_Load,(self,) + _args, _kwargs) - return val - def LoadFromString(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadFromString,(self,) + _args, _kwargs) - return val - def InitAllHandlers(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_InitAllHandlers,(self,) + _args, _kwargs) - return val - def AddHandler(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_AddHandler,(self,) + _args, _kwargs) - return val - def InsertHandler(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_InsertHandler,(self,) + _args, _kwargs) - return val - def ClearHandlers(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_ClearHandlers,(self,) + _args, _kwargs) - return val - def LoadMenu(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadMenu,(self,) + _args, _kwargs) - return val - def LoadMenuBar(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadMenuBar,(self,) + _args, _kwargs) - return val - def LoadMenuBarOnFrame(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadMenuBarOnFrame,(self,) + _args, _kwargs) - return val - def LoadToolBar(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadToolBar,(self,) + _args, _kwargs) - return val - def LoadDialog(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadDialog,(self,) + _args, _kwargs) - if val: val = wxDialogPtr(val) - return val - def LoadOnDialog(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadOnDialog,(self,) + _args, _kwargs) - return val - def LoadPanel(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadPanel,(self,) + _args, _kwargs) - if val: val = wxPanelPtr(val) - return val - def LoadOnPanel(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadOnPanel,(self,) + _args, _kwargs) - return val - def LoadFrame(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadFrame,(self,) + _args, _kwargs) - return val - def LoadOnFrame(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadOnFrame,(self,) + _args, _kwargs) - return val - def LoadObject(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadObject,(self,) + _args, _kwargs) - return val - def LoadOnObject(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadOnObject,(self,) + _args, _kwargs) - return val - def LoadBitmap(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadBitmap,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) ; val.thisown = 1 - return val - def LoadIcon(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_LoadIcon,(self,) + _args, _kwargs) - if val: val = wxIconPtr(val) ; val.thisown = 1 - return val - def AttachUnknownControl(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_AttachUnknownControl,(self,) + _args, _kwargs) - return val - def GetVersion(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_GetVersion,(self,) + _args, _kwargs) - return val - def CompareVersion(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_CompareVersion,(self,) + _args, _kwargs) - return val - def GetFlags(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_GetFlags,(self,) + _args, _kwargs) - return val - def SetFlags(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResource_SetFlags,(self,) + _args, _kwargs) - return val - def __repr__(self): - return "" % (self.this,) -class wxXmlResource(wxXmlResourcePtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlResource,_args,_kwargs) - self.thisown = 1 - self.InitAllHandlers() + def LoadIcon(*args, **kwargs): + """LoadIcon(String name) -> Icon""" + return _xrc.XmlResource_LoadIcon(*args, **kwargs) + def AttachUnknownControl(*args, **kwargs): + """AttachUnknownControl(String name, Window control, Window parent=None) -> bool""" + return _xrc.XmlResource_AttachUnknownControl(*args, **kwargs) + def GetXRCID(*args, **kwargs): + """GetXRCID(String str_id) -> int""" + return _xrc.XmlResource_GetXRCID(*args, **kwargs) -def wxEmptyXmlResource(*_args,**_kwargs): - val = wxXmlResourcePtr(apply(xrcc.new_wxEmptyXmlResource,_args,_kwargs)) + GetXRCID = staticmethod(GetXRCID) + def GetVersion(*args, **kwargs): + """GetVersion() -> long""" + return _xrc.XmlResource_GetVersion(*args, **kwargs) + + def CompareVersion(*args, **kwargs): + """CompareVersion(int major, int minor, int release, int revision) -> int""" + return _xrc.XmlResource_CompareVersion(*args, **kwargs) + + def Get(*args, **kwargs): + """Get() -> XmlResource""" + return _xrc.XmlResource_Get(*args, **kwargs) + + Get = staticmethod(Get) + def Set(*args, **kwargs): + """Set(XmlResource res) -> XmlResource""" + return _xrc.XmlResource_Set(*args, **kwargs) + + Set = staticmethod(Set) + def GetFlags(*args, **kwargs): + """GetFlags() -> int""" + return _xrc.XmlResource_GetFlags(*args, **kwargs) + + def SetFlags(*args, **kwargs): + """SetFlags(int flags)""" + return _xrc.XmlResource_SetFlags(*args, **kwargs) + + +class XmlResourcePtr(XmlResource): + def __init__(self, this): + self.this = this + 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""" + val = _xrc.new_EmptyXmlResource(*args, **kwargs) val.thisown = 1 val.InitAllHandlers() return val +def XmlResource_AddSubclassFactory(*args, **kwargs): + """XmlResource_AddSubclassFactory(XmlSubclassFactory factory)""" + return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs) -class wxXmlSubclassFactoryPtr : - def __init__(self,this): - self.this = this - self.thisown = 0 - def _setCallbackInfo(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlSubclassFactory__setCallbackInfo,(self,) + _args, _kwargs) - return val - def __repr__(self): - return "" % (self.this,) -class wxXmlSubclassFactory(wxXmlSubclassFactoryPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlSubclassFactory,_args,_kwargs) - self.thisown = 1 - self._setCallbackInfo(self, wxXmlSubclassFactory) +def XmlResource_GetXRCID(*args, **kwargs): + """XmlResource_GetXRCID(String str_id) -> int""" + return _xrc.XmlResource_GetXRCID(*args, **kwargs) +def XmlResource_Get(*args, **kwargs): + """XmlResource_Get() -> XmlResource""" + return _xrc.XmlResource_Get(*args, **kwargs) +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) -class wxXmlPropertyPtr : - def __init__(self,this): - self.this = this - self.thisown = 0 - def GetName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_GetName,(self,) + _args, _kwargs) - return val - def GetValue(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_GetValue,(self,) + _args, _kwargs) - return val - def GetNext(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_GetNext,(self,) + _args, _kwargs) - if val: val = wxXmlPropertyPtr(val) - return val - def SetName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_SetName,(self,) + _args, _kwargs) - return val - def SetValue(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_SetValue,(self,) + _args, _kwargs) - return val - def SetNext(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlProperty_SetNext,(self,) + _args, _kwargs) - return val +def XRCCTRL(window, str_id, *ignoreargs): + return window.FindWindowById(XRCID(str_id)) + +#--------------------------------------------------------------------------- + +class XmlSubclassFactory(object): def __repr__(self): - return "" % (self.this,) -class wxXmlProperty(wxXmlPropertyPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlProperty,_args,_kwargs) + return "<%s.%s; proxy of C++ wxPyXmlSubclassFactory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__() -> XmlSubclassFactory""" + newobj = _xrc.new_XmlSubclassFactory(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + self._setCallbackInfo(self, XmlSubclassFactory) + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _xrc.XmlSubclassFactory__setCallbackInfo(*args, **kwargs) - -class wxXmlNodePtr : - def __init__(self,this): +class XmlSubclassFactoryPtr(XmlSubclassFactory): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=xrcc.delete_wxXmlNode): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def AddChild(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_AddChild,(self,) + _args, _kwargs) - return val - def InsertChild(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_InsertChild,(self,) + _args, _kwargs) - return val - def RemoveChild(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_RemoveChild,(self,) + _args, _kwargs) - return val - def AddProperty(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_AddProperty,(self,) + _args, _kwargs) - return val - def AddPropertyName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_AddPropertyName,(self,) + _args, _kwargs) - return val - def DeleteProperty(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_DeleteProperty,(self,) + _args, _kwargs) - return val - def GetType(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetType,(self,) + _args, _kwargs) - return val - def GetName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetName,(self,) + _args, _kwargs) - return val - def GetContent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetContent,(self,) + _args, _kwargs) - return val - def GetParent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetParent,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetNext(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetNext,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetChildren(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetChildren,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetProperties(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetProperties,(self,) + _args, _kwargs) - if val: val = wxXmlPropertyPtr(val) - return val - def GetPropVal(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_GetPropVal,(self,) + _args, _kwargs) - return val - def HasProp(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_HasProp,(self,) + _args, _kwargs) - return val - def SetType(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetType,(self,) + _args, _kwargs) - return val - def SetName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetName,(self,) + _args, _kwargs) - return val - def SetContent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetContent,(self,) + _args, _kwargs) - return val - def SetParent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetParent,(self,) + _args, _kwargs) - return val - def SetNext(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetNext,(self,) + _args, _kwargs) - return val - def SetChildren(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetChildren,(self,) + _args, _kwargs) - return val - def SetProperties(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlNode_SetProperties,(self,) + _args, _kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = XmlSubclassFactory +_xrc.XmlSubclassFactory_swigregister(XmlSubclassFactoryPtr) + +#--------------------------------------------------------------------------- + +XML_ELEMENT_NODE = _xrc.XML_ELEMENT_NODE +XML_ATTRIBUTE_NODE = _xrc.XML_ATTRIBUTE_NODE +XML_TEXT_NODE = _xrc.XML_TEXT_NODE +XML_CDATA_SECTION_NODE = _xrc.XML_CDATA_SECTION_NODE +XML_ENTITY_REF_NODE = _xrc.XML_ENTITY_REF_NODE +XML_ENTITY_NODE = _xrc.XML_ENTITY_NODE +XML_PI_NODE = _xrc.XML_PI_NODE +XML_COMMENT_NODE = _xrc.XML_COMMENT_NODE +XML_DOCUMENT_NODE = _xrc.XML_DOCUMENT_NODE +XML_DOCUMENT_TYPE_NODE = _xrc.XML_DOCUMENT_TYPE_NODE +XML_DOCUMENT_FRAG_NODE = _xrc.XML_DOCUMENT_FRAG_NODE +XML_NOTATION_NODE = _xrc.XML_NOTATION_NODE +XML_HTML_DOCUMENT_NODE = _xrc.XML_HTML_DOCUMENT_NODE +class XmlProperty(object): def __repr__(self): - return "" % (self.this,) -class wxXmlNode(wxXmlNodePtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlNode,_args,_kwargs) + return "<%s.%s; proxy of C++ wxXmlProperty instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """ + __init__(String name=EmptyString, String value=EmptyString, + XmlProperty next=None) -> XmlProperty + """ + newobj = _xrc.new_XmlProperty(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + def GetName(*args, **kwargs): + """GetName() -> String""" + return _xrc.XmlProperty_GetName(*args, **kwargs) + def GetValue(*args, **kwargs): + """GetValue() -> String""" + return _xrc.XmlProperty_GetValue(*args, **kwargs) + def GetNext(*args, **kwargs): + """GetNext() -> XmlProperty""" + return _xrc.XmlProperty_GetNext(*args, **kwargs) -def wxXmlNodeEasy(*_args,**_kwargs): - val = wxXmlNodePtr(apply(xrcc.new_wxXmlNodeEasy,_args,_kwargs)) - val.thisown = 1 - return val + def SetName(*args, **kwargs): + """SetName(String name)""" + return _xrc.XmlProperty_SetName(*args, **kwargs) + def SetValue(*args, **kwargs): + """SetValue(String value)""" + return _xrc.XmlProperty_SetValue(*args, **kwargs) -class wxXmlDocumentPtr(wxObjectPtr): - def __init__(self,this): + def SetNext(*args, **kwargs): + """SetNext(XmlProperty next)""" + return _xrc.XmlProperty_SetNext(*args, **kwargs) + + +class XmlPropertyPtr(XmlProperty): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=xrcc.delete_wxXmlDocument): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def Load(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_Load,(self,) + _args, _kwargs) - return val - def LoadFromStream(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_LoadFromStream,(self,) + _args, _kwargs) - return val - def Save(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_Save,(self,) + _args, _kwargs) - return val - def SaveToStream(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_SaveToStream,(self,) + _args, _kwargs) - return val - def IsOk(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_IsOk,(self,) + _args, _kwargs) - return val - def GetRoot(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_GetRoot,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetVersion(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_GetVersion,(self,) + _args, _kwargs) - return val - def GetFileEncoding(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_GetFileEncoding,(self,) + _args, _kwargs) - return val - def SetRoot(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_SetRoot,(self,) + _args, _kwargs) - return val - def SetVersion(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_SetVersion,(self,) + _args, _kwargs) - return val - def SetFileEncoding(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_SetFileEncoding,(self,) + _args, _kwargs) - return val - def GetEncoding(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_GetEncoding,(self,) + _args, _kwargs) - return val - def SetEncoding(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlDocument_SetEncoding,(self,) + _args, _kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = XmlProperty +_xrc.XmlProperty_swigregister(XmlPropertyPtr) + +class XmlNode(object): def __repr__(self): - return "" % (self.this,) -class wxXmlDocument(wxXmlDocumentPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlDocument,_args,_kwargs) + return "<%s.%s; proxy of C++ wxXmlNode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """ + __init__(XmlNode parent=None, int type=0, String name=EmptyString, + String content=EmptyString, XmlProperty props=None, + XmlNode next=None) -> XmlNode + """ + newobj = _xrc.new_XmlNode(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + def __del__(self, destroy=_xrc.delete_XmlNode): + """__del__()""" + try: + if self.thisown: destroy(self) + except: pass + def AddChild(*args, **kwargs): + """AddChild(XmlNode child)""" + return _xrc.XmlNode_AddChild(*args, **kwargs) + def InsertChild(*args, **kwargs): + """InsertChild(XmlNode child, XmlNode before_node)""" + return _xrc.XmlNode_InsertChild(*args, **kwargs) -def wxXmlDocumentFromStream(*_args,**_kwargs): - val = wxXmlDocumentPtr(apply(xrcc.new_wxXmlDocumentFromStream,_args,_kwargs)) - val.thisown = 1 - return val + def RemoveChild(*args, **kwargs): + """RemoveChild(XmlNode child) -> bool""" + return _xrc.XmlNode_RemoveChild(*args, **kwargs) -def wxEmptyXmlDocument(*_args,**_kwargs): - val = wxXmlDocumentPtr(apply(xrcc.new_wxEmptyXmlDocument,_args,_kwargs)) - val.thisown = 1 - return val + def AddProperty(*args, **kwargs): + """AddProperty(XmlProperty prop)""" + return _xrc.XmlNode_AddProperty(*args, **kwargs) + + def AddPropertyName(*args, **kwargs): + """AddPropertyName(String name, String value)""" + return _xrc.XmlNode_AddPropertyName(*args, **kwargs) + + def DeleteProperty(*args, **kwargs): + """DeleteProperty(String name) -> bool""" + return _xrc.XmlNode_DeleteProperty(*args, **kwargs) + + def GetType(*args, **kwargs): + """GetType() -> int""" + return _xrc.XmlNode_GetType(*args, **kwargs) + def GetName(*args, **kwargs): + """GetName() -> String""" + return _xrc.XmlNode_GetName(*args, **kwargs) -class wxXmlResourceHandlerPtr(wxObjectPtr): - def __init__(self,this): + def GetContent(*args, **kwargs): + """GetContent() -> String""" + return _xrc.XmlNode_GetContent(*args, **kwargs) + + def GetParent(*args, **kwargs): + """GetParent() -> XmlNode""" + return _xrc.XmlNode_GetParent(*args, **kwargs) + + def GetNext(*args, **kwargs): + """GetNext() -> XmlNode""" + return _xrc.XmlNode_GetNext(*args, **kwargs) + + def GetChildren(*args, **kwargs): + """GetChildren() -> XmlNode""" + return _xrc.XmlNode_GetChildren(*args, **kwargs) + + def GetProperties(*args, **kwargs): + """GetProperties() -> XmlProperty""" + return _xrc.XmlNode_GetProperties(*args, **kwargs) + + def GetPropVal(*args, **kwargs): + """GetPropVal(String propName, String defaultVal) -> String""" + return _xrc.XmlNode_GetPropVal(*args, **kwargs) + + def HasProp(*args, **kwargs): + """HasProp(String propName) -> bool""" + return _xrc.XmlNode_HasProp(*args, **kwargs) + + def SetType(*args, **kwargs): + """SetType(int type)""" + return _xrc.XmlNode_SetType(*args, **kwargs) + + def SetName(*args, **kwargs): + """SetName(String name)""" + return _xrc.XmlNode_SetName(*args, **kwargs) + + def SetContent(*args, **kwargs): + """SetContent(String con)""" + return _xrc.XmlNode_SetContent(*args, **kwargs) + + def SetParent(*args, **kwargs): + """SetParent(XmlNode parent)""" + return _xrc.XmlNode_SetParent(*args, **kwargs) + + def SetNext(*args, **kwargs): + """SetNext(XmlNode next)""" + return _xrc.XmlNode_SetNext(*args, **kwargs) + + def SetChildren(*args, **kwargs): + """SetChildren(XmlNode child)""" + return _xrc.XmlNode_SetChildren(*args, **kwargs) + + def SetProperties(*args, **kwargs): + """SetProperties(XmlProperty prop)""" + return _xrc.XmlNode_SetProperties(*args, **kwargs) + + +class XmlNodePtr(XmlNode): + def __init__(self, this): self.this = this - self.thisown = 0 - def _setCallbackInfo(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler__setCallbackInfo,(self,) + _args, _kwargs) - return val - def CreateResource(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_CreateResource,(self,) + _args, _kwargs) - return val - def SetParentResource(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_SetParentResource,(self,) + _args, _kwargs) - return val - def GetResource(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetResource,(self,) + _args, _kwargs) - if val: val = wxXmlResourcePtr(val) - return val - def GetNode(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetNode,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetClass(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetClass,(self,) + _args, _kwargs) - return val - def GetParent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetParent,(self,) + _args, _kwargs) - return val - def GetInstance(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetInstance,(self,) + _args, _kwargs) - return val - def GetParentAsWindow(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetParentAsWindow,(self,) + _args, _kwargs) - return val - def GetInstanceAsWindow(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetInstanceAsWindow,(self,) + _args, _kwargs) - return val - def IsOfClass(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_IsOfClass,(self,) + _args, _kwargs) - return val - def GetNodeContent(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetNodeContent,(self,) + _args, _kwargs) - return val - def HasParam(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_HasParam,(self,) + _args, _kwargs) - return val - def GetParamNode(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetParamNode,(self,) + _args, _kwargs) - if val: val = wxXmlNodePtr(val) - return val - def GetParamValue(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetParamValue,(self,) + _args, _kwargs) - return val - def AddStyle(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_AddStyle,(self,) + _args, _kwargs) - return val - def AddWindowStyles(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_AddWindowStyles,(self,) + _args, _kwargs) - return val - def GetStyle(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetStyle,(self,) + _args, _kwargs) - return val - def GetText(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetText,(self,) + _args, _kwargs) - return val - def GetID(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetID,(self,) + _args, _kwargs) - return val - def GetName(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetName,(self,) + _args, _kwargs) - return val - def GetBool(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetBool,(self,) + _args, _kwargs) - return val - def GetLong(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetLong,(self,) + _args, _kwargs) - return val - def GetColour(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def GetSize(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetSize,(self,) + _args, _kwargs) - if val: val = wxSizePtr(val) ; val.thisown = 1 - return val - def GetPosition(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetPosition,(self,) + _args, _kwargs) - if val: val = wxPointPtr(val) ; val.thisown = 1 - return val - def GetDimension(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetDimension,(self,) + _args, _kwargs) - return val - def GetBitmap(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetBitmap,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) ; val.thisown = 1 - return val - def GetIcon(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetIcon,(self,) + _args, _kwargs) - if val: val = wxIconPtr(val) ; val.thisown = 1 - return val - def GetFont(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetFont,(self,) + _args, _kwargs) - if val: val = wxFontPtr(val) ; val.thisown = 1 - return val - def SetupWindow(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_SetupWindow,(self,) + _args, _kwargs) - return val - def CreateChildren(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_CreateChildren,(self,) + _args, _kwargs) - return val - def CreateChildrenPrivately(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_CreateChildrenPrivately,(self,) + _args, _kwargs) - return val - def CreateResFromNode(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_CreateResFromNode,(self,) + _args, _kwargs) - return val - def GetCurFileSystem(self, *_args, **_kwargs): - val = apply(xrcc.wxXmlResourceHandler_GetCurFileSystem,(self,) + _args, _kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = XmlNode +_xrc.XmlNode_swigregister(XmlNodePtr) + +def XmlNodeEasy(*args, **kwargs): + """XmlNodeEasy(int type, String name, String content=EmptyString) -> XmlNode""" + val = _xrc.new_XmlNodeEasy(*args, **kwargs) + val.thisown = 1 + return val + +class XmlDocument(core.Object): def __repr__(self): - return "" % (self.this,) -class wxXmlResourceHandler(wxXmlResourceHandlerPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(xrcc.new_wxXmlResourceHandler,_args,_kwargs) + 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=UTF8String) -> XmlDocument""" + newobj = _xrc.new_XmlDocument(*args, **kwargs) + self.this = newobj.this self.thisown = 1 - self._setCallbackInfo(self, wxXmlResourceHandler) + del newobj.thisown + def __del__(self, destroy=_xrc.delete_XmlDocument): + """__del__()""" + try: + if self.thisown: destroy(self) + except: pass + + def Load(*args, **kwargs): + """Load(String filename, String encoding=UTF8String) -> bool""" + return _xrc.XmlDocument_Load(*args, **kwargs) + def LoadFromStream(*args, **kwargs): + """LoadFromStream(InputStream stream, String encoding=UTF8String) -> bool""" + return _xrc.XmlDocument_LoadFromStream(*args, **kwargs) + def Save(*args, **kwargs): + """Save(String filename) -> bool""" + return _xrc.XmlDocument_Save(*args, **kwargs) + def SaveToStream(*args, **kwargs): + """SaveToStream(OutputStream stream) -> bool""" + return _xrc.XmlDocument_SaveToStream(*args, **kwargs) + def IsOk(*args, **kwargs): + """IsOk() -> bool""" + return _xrc.XmlDocument_IsOk(*args, **kwargs) + def GetRoot(*args, **kwargs): + """GetRoot() -> XmlNode""" + return _xrc.XmlDocument_GetRoot(*args, **kwargs) -#-------------- FUNCTION WRAPPERS ------------------ + def GetVersion(*args, **kwargs): + """GetVersion() -> String""" + return _xrc.XmlDocument_GetVersion(*args, **kwargs) -wxXmlResource_AddSubclassFactory = xrcc.wxXmlResource_AddSubclassFactory + def GetFileEncoding(*args, **kwargs): + """GetFileEncoding() -> String""" + return _xrc.XmlDocument_GetFileEncoding(*args, **kwargs) -wxXmlResource_GetXRCID = xrcc.wxXmlResource_GetXRCID + def SetRoot(*args, **kwargs): + """SetRoot(XmlNode node)""" + return _xrc.XmlDocument_SetRoot(*args, **kwargs) -def wxXmlResource_Get(*_args, **_kwargs): - val = apply(xrcc.wxXmlResource_Get,_args,_kwargs) - if val: val = wxXmlResourcePtr(val) + def SetVersion(*args, **kwargs): + """SetVersion(String version)""" + return _xrc.XmlDocument_SetVersion(*args, **kwargs) + + def SetFileEncoding(*args, **kwargs): + """SetFileEncoding(String encoding)""" + return _xrc.XmlDocument_SetFileEncoding(*args, **kwargs) + + +class XmlDocumentPtr(XmlDocument): + def __init__(self, this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = XmlDocument +_xrc.XmlDocument_swigregister(XmlDocumentPtr) + +def XmlDocumentFromStream(*args, **kwargs): + """XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument""" + val = _xrc.new_XmlDocumentFromStream(*args, **kwargs) + val.thisown = 1 return val -def wxXmlResource_Set(*_args, **_kwargs): - val = apply(xrcc.wxXmlResource_Set,_args,_kwargs) - if val: val = wxXmlResourcePtr(val) +def EmptyXmlDocument(*args, **kwargs): + """EmptyXmlDocument() -> XmlDocument""" + val = _xrc.new_EmptyXmlDocument(*args, **kwargs) + val.thisown = 1 return val +#--------------------------------------------------------------------------- +class XmlResourceHandler(core.Object): + def __repr__(self): + return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__() -> XmlResourceHandler""" + newobj = _xrc.new_XmlResourceHandler(*args, **kwargs) + self.this = newobj.this + self.thisown = 1 + del newobj.thisown + self._setCallbackInfo(self, XmlResourceHandler) -#-------------- VARIABLE WRAPPERS ------------------ + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _xrc.XmlResourceHandler__setCallbackInfo(*args, **kwargs) -wxXRC_USE_LOCALE = xrcc.wxXRC_USE_LOCALE -wxXRC_NO_SUBCLASSING = xrcc.wxXRC_NO_SUBCLASSING -wxXML_ELEMENT_NODE = xrcc.wxXML_ELEMENT_NODE -wxXML_ATTRIBUTE_NODE = xrcc.wxXML_ATTRIBUTE_NODE -wxXML_TEXT_NODE = xrcc.wxXML_TEXT_NODE -wxXML_CDATA_SECTION_NODE = xrcc.wxXML_CDATA_SECTION_NODE -wxXML_ENTITY_REF_NODE = xrcc.wxXML_ENTITY_REF_NODE -wxXML_ENTITY_NODE = xrcc.wxXML_ENTITY_NODE -wxXML_PI_NODE = xrcc.wxXML_PI_NODE -wxXML_COMMENT_NODE = xrcc.wxXML_COMMENT_NODE -wxXML_DOCUMENT_NODE = xrcc.wxXML_DOCUMENT_NODE -wxXML_DOCUMENT_TYPE_NODE = xrcc.wxXML_DOCUMENT_TYPE_NODE -wxXML_DOCUMENT_FRAG_NODE = xrcc.wxXML_DOCUMENT_FRAG_NODE -wxXML_NOTATION_NODE = xrcc.wxXML_NOTATION_NODE -wxXML_HTML_DOCUMENT_NODE = xrcc.wxXML_HTML_DOCUMENT_NODE + def CreateResource(*args, **kwargs): + """CreateResource(XmlNode node, Object parent, Object instance) -> Object""" + return _xrc.XmlResourceHandler_CreateResource(*args, **kwargs) + def SetParentResource(*args, **kwargs): + """SetParentResource(XmlResource res)""" + return _xrc.XmlResourceHandler_SetParentResource(*args, **kwargs) -#-------------- USER INCLUDE ----------------------- + def GetResource(*args, **kwargs): + """GetResource() -> XmlResource""" + return _xrc.XmlResourceHandler_GetResource(*args, **kwargs) + def GetNode(*args, **kwargs): + """GetNode() -> XmlNode""" + return _xrc.XmlResourceHandler_GetNode(*args, **kwargs) + + def GetClass(*args, **kwargs): + """GetClass() -> String""" + return _xrc.XmlResourceHandler_GetClass(*args, **kwargs) + + def GetParent(*args, **kwargs): + """GetParent() -> Object""" + return _xrc.XmlResourceHandler_GetParent(*args, **kwargs) + + def GetInstance(*args, **kwargs): + """GetInstance() -> Object""" + return _xrc.XmlResourceHandler_GetInstance(*args, **kwargs) + + def GetParentAsWindow(*args, **kwargs): + """GetParentAsWindow() -> Window""" + return _xrc.XmlResourceHandler_GetParentAsWindow(*args, **kwargs) + + def GetInstanceAsWindow(*args, **kwargs): + """GetInstanceAsWindow() -> Window""" + return _xrc.XmlResourceHandler_GetInstanceAsWindow(*args, **kwargs) + + def IsOfClass(*args, **kwargs): + """IsOfClass(XmlNode node, String classname) -> bool""" + return _xrc.XmlResourceHandler_IsOfClass(*args, **kwargs) + + def GetNodeContent(*args, **kwargs): + """GetNodeContent(XmlNode node) -> String""" + return _xrc.XmlResourceHandler_GetNodeContent(*args, **kwargs) + + def HasParam(*args, **kwargs): + """HasParam(String param) -> bool""" + return _xrc.XmlResourceHandler_HasParam(*args, **kwargs) + + def GetParamNode(*args, **kwargs): + """GetParamNode(String param) -> XmlNode""" + return _xrc.XmlResourceHandler_GetParamNode(*args, **kwargs) + + def GetParamValue(*args, **kwargs): + """GetParamValue(String param) -> String""" + return _xrc.XmlResourceHandler_GetParamValue(*args, **kwargs) + + def AddStyle(*args, **kwargs): + """AddStyle(String name, int value)""" + return _xrc.XmlResourceHandler_AddStyle(*args, **kwargs) + + def AddWindowStyles(*args, **kwargs): + """AddWindowStyles()""" + return _xrc.XmlResourceHandler_AddWindowStyles(*args, **kwargs) + + def GetStyle(*args, **kwargs): + """GetStyle(String param=StyleString, int defaults=0) -> int""" + return _xrc.XmlResourceHandler_GetStyle(*args, **kwargs) + + def GetText(*args, **kwargs): + """GetText(String param, bool translate=True) -> String""" + return _xrc.XmlResourceHandler_GetText(*args, **kwargs) + + def GetID(*args, **kwargs): + """GetID() -> int""" + return _xrc.XmlResourceHandler_GetID(*args, **kwargs) + + def GetName(*args, **kwargs): + """GetName() -> String""" + return _xrc.XmlResourceHandler_GetName(*args, **kwargs) + + def GetBool(*args, **kwargs): + """GetBool(String param, bool defaultv=False) -> bool""" + return _xrc.XmlResourceHandler_GetBool(*args, **kwargs) + + def GetLong(*args, **kwargs): + """GetLong(String param, long defaultv=0) -> long""" + return _xrc.XmlResourceHandler_GetLong(*args, **kwargs) + + def GetColour(*args, **kwargs): + """GetColour(String param) -> Colour""" + return _xrc.XmlResourceHandler_GetColour(*args, **kwargs) + + def GetSize(*args, **kwargs): + """GetSize(String param=SizeString) -> Size""" + return _xrc.XmlResourceHandler_GetSize(*args, **kwargs) + + def GetPosition(*args, **kwargs): + """GetPosition(String param=PosString) -> Point""" + return _xrc.XmlResourceHandler_GetPosition(*args, **kwargs) + + def GetDimension(*args, **kwargs): + """GetDimension(String param, int defaultv=0) -> int""" + return _xrc.XmlResourceHandler_GetDimension(*args, **kwargs) + + def GetBitmap(*args, **kwargs): + """ + 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=IconString, wxArtClient defaultArtClient=wxART_OTHER, + Size size=DefaultSize) -> Icon + """ + return _xrc.XmlResourceHandler_GetIcon(*args, **kwargs) + + def GetFont(*args, **kwargs): + """GetFont(String param=FontString) -> Font""" + return _xrc.XmlResourceHandler_GetFont(*args, **kwargs) + + def SetupWindow(*args, **kwargs): + """SetupWindow(Window wnd)""" + return _xrc.XmlResourceHandler_SetupWindow(*args, **kwargs) + + def CreateChildren(*args, **kwargs): + """CreateChildren(Object parent, bool this_hnd_only=False)""" + return _xrc.XmlResourceHandler_CreateChildren(*args, **kwargs) + + def CreateChildrenPrivately(*args, **kwargs): + """CreateChildrenPrivately(Object parent, XmlNode rootnode=None)""" + return _xrc.XmlResourceHandler_CreateChildrenPrivately(*args, **kwargs) + + def CreateResFromNode(*args, **kwargs): + """CreateResFromNode(XmlNode node, Object parent, Object instance=None) -> Object""" + return _xrc.XmlResourceHandler_CreateResFromNode(*args, **kwargs) + + def GetCurFileSystem(*args, **kwargs): + """GetCurFileSystem() -> FileSystem""" + return _xrc.XmlResourceHandler_GetCurFileSystem(*args, **kwargs) -# The global was removed in favor of static accessor functions. This is for -# backwards compatibility: -wxTheXmlResource = wxXmlResource_Get() -wx.wxXmlNodePtr = wxXmlNodePtr +class XmlResourceHandlerPtr(XmlResourceHandler): + def __init__(self, this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = XmlResourceHandler +_xrc.XmlResourceHandler_swigregister(XmlResourceHandlerPtr) +#---------------------------------------------------------------------------- +# The global was removed in favor of static accessor functions. This is for +# backwards compatibility: +TheXmlResource = XmlResource_Get() -#---------------------------------------------------------------------- +#---------------------------------------------------------------------------- # Create a factory for handling the subclass property of the object tag. @@ -566,9 +665,9 @@ def _my_import(name): return mod -class wxXmlSubclassFactory_Python(wxXmlSubclassFactory): +class XmlSubclassFactory_Python(XmlSubclassFactory): def __init__(self): - wxXmlSubclassFactory.__init__(self) + XmlSubclassFactory.__init__(self) def Create(self, className): assert className.find('.') != -1, "Module name must be specified!" @@ -580,5 +679,8 @@ class wxXmlSubclassFactory_Python(wxXmlSubclassFactory): return inst -wxXmlResource_AddSubclassFactory(wxXmlSubclassFactory_Python()) +XmlResource_AddSubclassFactory(XmlSubclassFactory_Python()) + +#---------------------------------------------------------------------------- +