+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__(wxString filename, wxString encoding=wxPyUTF8String) -> XmlDocument"""
+ newobj = _xrc.new_XmlDocument(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def __del__(self, destroy=_xrc.delete_XmlDocument):
+ """__del__()"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def Load(*args, **kwargs):
+ """Load(wxString filename, wxString encoding=wxPyUTF8String) -> bool"""
+ return _xrc.XmlDocument_Load(*args, **kwargs)
+
+ def LoadFromStream(*args, **kwargs):
+ """LoadFromStream(wxInputStream stream, wxString encoding=wxPyUTF8String) -> bool"""
+ return _xrc.XmlDocument_LoadFromStream(*args, **kwargs)
+
+ def Save(*args, **kwargs):
+ """Save(wxString 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)
+
+ def GetVersion(*args, **kwargs):
+ """GetVersion() -> wxString"""
+ return _xrc.XmlDocument_GetVersion(*args, **kwargs)
+
+ def GetFileEncoding(*args, **kwargs):
+ """GetFileEncoding() -> wxString"""
+ return _xrc.XmlDocument_GetFileEncoding(*args, **kwargs)
+
+ def SetRoot(*args, **kwargs):
+ """SetRoot(XmlNode node)"""
+ return _xrc.XmlDocument_SetRoot(*args, **kwargs)
+
+ def SetVersion(*args, **kwargs):
+ """SetVersion(wxString version)"""
+ return _xrc.XmlDocument_SetVersion(*args, **kwargs)
+
+ def SetFileEncoding(*args, **kwargs):
+ """SetFileEncoding(wxString 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(wxInputStream stream, wxString encoding=wxPyUTF8String) -> XmlDocument"""
+ val = _xrc.new_XmlDocumentFromStream(*args, **kwargs)
+ val.thisown = 1
+ return 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)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(PyObject self, PyObject _class)"""
+ return _xrc.XmlResourceHandler__setCallbackInfo(*args, **kwargs)
+
+ 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)
+
+ 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() -> wxString"""
+ 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, wxString classname) -> bool"""
+ return _xrc.XmlResourceHandler_IsOfClass(*args, **kwargs)
+
+ def GetNodeContent(*args, **kwargs):
+ """GetNodeContent(XmlNode node) -> wxString"""
+ return _xrc.XmlResourceHandler_GetNodeContent(*args, **kwargs)
+
+ def HasParam(*args, **kwargs):
+ """HasParam(wxString param) -> bool"""
+ return _xrc.XmlResourceHandler_HasParam(*args, **kwargs)
+
+ def GetParamNode(*args, **kwargs):
+ """GetParamNode(wxString param) -> XmlNode"""
+ return _xrc.XmlResourceHandler_GetParamNode(*args, **kwargs)
+
+ def GetParamValue(*args, **kwargs):
+ """GetParamValue(wxString param) -> wxString"""
+ return _xrc.XmlResourceHandler_GetParamValue(*args, **kwargs)
+
+ def AddStyle(*args, **kwargs):
+ """AddStyle(wxString 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(wxString param=wxPyStyleString, int defaults=0) -> int"""
+ return _xrc.XmlResourceHandler_GetStyle(*args, **kwargs)
+
+ def GetText(*args, **kwargs):
+ """GetText(wxString param, bool translate=True) -> wxString"""
+ return _xrc.XmlResourceHandler_GetText(*args, **kwargs)
+
+ def GetID(*args, **kwargs):
+ """GetID() -> int"""
+ return _xrc.XmlResourceHandler_GetID(*args, **kwargs)
+
+ def GetName(*args, **kwargs):
+ """GetName() -> wxString"""
+ return _xrc.XmlResourceHandler_GetName(*args, **kwargs)
+
+ def GetBool(*args, **kwargs):
+ """GetBool(wxString param, bool defaultv=False) -> bool"""
+ return _xrc.XmlResourceHandler_GetBool(*args, **kwargs)
+
+ def GetLong(*args, **kwargs):
+ """GetLong(wxString param, long defaultv=0) -> long"""
+ return _xrc.XmlResourceHandler_GetLong(*args, **kwargs)
+
+ def GetColour(*args, **kwargs):
+ """GetColour(wxString param) -> wxColour"""
+ return _xrc.XmlResourceHandler_GetColour(*args, **kwargs)
+
+ def GetSize(*args, **kwargs):
+ """GetSize(wxString param=wxPySizeString) -> Size"""
+ return _xrc.XmlResourceHandler_GetSize(*args, **kwargs)
+
+ def GetPosition(*args, **kwargs):
+ """GetPosition(wxString param=wxPyPosString) -> Point"""
+ return _xrc.XmlResourceHandler_GetPosition(*args, **kwargs)
+
+ def GetDimension(*args, **kwargs):
+ """GetDimension(wxString param, int defaultv=0) -> int"""
+ return _xrc.XmlResourceHandler_GetDimension(*args, **kwargs)
+
+ def GetBitmap(*args, **kwargs):
+ """
+ GetBitmap(wxString param=wxPyBitmapString, wxArtClient defaultArtClient=wxART_OTHER,
+ Size size=DefaultSize) -> wxBitmap
+ """
+ return _xrc.XmlResourceHandler_GetBitmap(*args, **kwargs)
+
+ def GetIcon(*args, **kwargs):
+ """
+ GetIcon(wxString param=wxPyIconString, wxArtClient defaultArtClient=wxART_OTHER,
+ Size size=DefaultSize) -> wxIcon
+ """
+ return _xrc.XmlResourceHandler_GetIcon(*args, **kwargs)
+
+ def GetFont(*args, **kwargs):
+ """GetFont(wxString param=wxPyFontString) -> wxFont"""
+ 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)
+
+
+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.
+
+
+def _my_import(name):
+ mod = __import__(name)
+ components = name.split('.')
+ for comp in components[1:]:
+ mod = getattr(mod, comp)
+ return mod