+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()
+
+ def __del__(self, destroy=_xrc.delete_XmlResource):
+ """__del__()"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def Load(*args, **kwargs):
+ """Load(String filemask) -> bool"""
+ return _xrc.XmlResource_Load(*args, **kwargs)
+
+ def LoadFromString(*args, **kwargs):
+ """LoadFromString(String data) -> bool"""
+ return _xrc.XmlResource_LoadFromString(*args, **kwargs)
+
+ def InitAllHandlers(*args, **kwargs):
+ """InitAllHandlers()"""
+ return _xrc.XmlResource_InitAllHandlers(*args, **kwargs)
+
+ def AddHandler(*args, **kwargs):
+ """AddHandler(XmlResourceHandler handler)"""
+ return _xrc.XmlResource_AddHandler(*args, **kwargs)
+
+ def InsertHandler(*args, **kwargs):
+ """InsertHandler(XmlResourceHandler handler)"""
+ return _xrc.XmlResource_InsertHandler(*args, **kwargs)
+
+ def ClearHandlers(*args, **kwargs):
+ """ClearHandlers()"""
+ return _xrc.XmlResource_ClearHandlers(*args, **kwargs)
+
+ def AddSubclassFactory(*args, **kwargs):
+ """AddSubclassFactory(XmlSubclassFactory factory)"""
+ return _xrc.XmlResource_AddSubclassFactory(*args, **kwargs)
+
+ AddSubclassFactory = staticmethod(AddSubclassFactory)
+ def LoadMenu(*args, **kwargs):
+ """LoadMenu(String name) -> Menu"""
+ return _xrc.XmlResource_LoadMenu(*args, **kwargs)
+
+ def LoadMenuBar(*args, **kwargs):
+ """LoadMenuBar(String name) -> MenuBar"""
+ return _xrc.XmlResource_LoadMenuBar(*args, **kwargs)
+
+ def LoadMenuBarOnFrame(*args, **kwargs):
+ """LoadMenuBarOnFrame(Window parent, String name) -> MenuBar"""
+ return _xrc.XmlResource_LoadMenuBarOnFrame(*args, **kwargs)
+
+ def LoadToolBar(*args, **kwargs):
+ """LoadToolBar(Window parent, String name) -> wxToolBar"""
+ return _xrc.XmlResource_LoadToolBar(*args, **kwargs)
+
+ def LoadDialog(*args, **kwargs):
+ """LoadDialog(Window parent, String name) -> wxDialog"""
+ return _xrc.XmlResource_LoadDialog(*args, **kwargs)
+
+ def LoadOnDialog(*args, **kwargs):
+ """LoadOnDialog(wxDialog dlg, Window parent, String name) -> bool"""
+ return _xrc.XmlResource_LoadOnDialog(*args, **kwargs)
+
+ def LoadPanel(*args, **kwargs):
+ """LoadPanel(Window parent, String name) -> wxPanel"""
+ return _xrc.XmlResource_LoadPanel(*args, **kwargs)
+
+ def LoadOnPanel(*args, **kwargs):
+ """LoadOnPanel(wxPanel panel, Window parent, String name) -> bool"""
+ return _xrc.XmlResource_LoadOnPanel(*args, **kwargs)
+
+ def LoadFrame(*args, **kwargs):
+ """LoadFrame(Window parent, String name) -> wxFrame"""
+ return _xrc.XmlResource_LoadFrame(*args, **kwargs)
+
+ def LoadOnFrame(*args, **kwargs):
+ """LoadOnFrame(wxFrame frame, Window parent, String name) -> bool"""
+ return _xrc.XmlResource_LoadOnFrame(*args, **kwargs)
+
+ def LoadObject(*args, **kwargs):
+ """LoadObject(Window parent, String name, String classname) -> Object"""
+ return _xrc.XmlResource_LoadObject(*args, **kwargs)
+
+ def LoadOnObject(*args, **kwargs):
+ """LoadOnObject(Object instance, Window parent, String name, String classname) -> bool"""
+ return _xrc.XmlResource_LoadOnObject(*args, **kwargs)
+
+ def LoadBitmap(*args, **kwargs):
+ """LoadBitmap(String name) -> Bitmap"""
+ return _xrc.XmlResource_LoadBitmap(*args, **kwargs)
+
+ 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)
+
+ 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)
+
+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)
+
+def XRCCTRL(window, str_id, *ignoreargs):
+ return window.FindWindowById(XRCID(str_id))
+
+#---------------------------------------------------------------------------
+
+class XmlSubclassFactory(object):
+ def __repr__(self):
+ 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 XmlSubclassFactoryPtr(XmlSubclassFactory):
+ def __init__(self, this):
+ self.this = this
+ 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 "<%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 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)
+
+ def SetNext(*args, **kwargs):
+ """SetNext(XmlProperty next)"""
+ return _xrc.XmlProperty_SetNext(*args, **kwargs)
+
+
+class XmlPropertyPtr(XmlProperty):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = XmlProperty
+_xrc.XmlProperty_swigregister(XmlPropertyPtr)
+
+class XmlNode(object):
+ def __repr__(self):
+ 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)