X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33d6fd3b4c38226d3859de4a29ab317f588ada22..395e0a70bad49a83c9c8eb7626b1e3dd2e5f10c5:/wxPython/src/mac/xrc.py diff --git a/wxPython/src/mac/xrc.py b/wxPython/src/mac/xrc.py index c90dd9a978..6bee8d35af 100644 --- a/wxPython/src/mac/xrc.py +++ b/wxPython/src/mac/xrc.py @@ -211,6 +211,9 @@ class XmlResource(_core.Object): """SetDomain(self, String domain)""" return _xrc.XmlResource_SetDomain(*args, **kwargs) + Domain = property(GetDomain,SetDomain,doc="See `GetDomain` and `SetDomain`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + Version = property(GetVersion,doc="See `GetVersion`") _xrc.XmlResource_swigregister(XmlResource) cvar = _xrc.cvar UTF8String = cvar.UTF8String @@ -220,6 +223,7 @@ PosString = cvar.PosString BitmapString = cvar.BitmapString IconString = cvar.IconString FontString = cvar.FontString +AnimationString = cvar.AnimationString def EmptyXmlResource(*args, **kwargs): """EmptyXmlResource(int flags=XRC_USE_LOCALE, String domain=wxEmptyString) -> XmlResource""" @@ -258,7 +262,7 @@ class XmlSubclassFactory(object): def __init__(self, *args, **kwargs): """__init__(self) -> XmlSubclassFactory""" _xrc.XmlSubclassFactory_swiginit(self,_xrc.new_XmlSubclassFactory(*args, **kwargs)) - self._setCallbackInfo(self, XmlSubclassFactory) + XmlSubclassFactory._setCallbackInfo(self, self, XmlSubclassFactory) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" @@ -315,6 +319,9 @@ class XmlProperty(object): """SetNext(self, XmlProperty next)""" return _xrc.XmlProperty_SetNext(*args, **kwargs) + Name = property(GetName,SetName,doc="See `GetName` and `SetName`") + Next = property(GetNext,SetNext,doc="See `GetNext` and `SetNext`") + Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") _xrc.XmlProperty_swigregister(XmlProperty) class XmlNode(object): @@ -430,6 +437,13 @@ class XmlNode(object): """SetProperties(self, XmlProperty prop)""" return _xrc.XmlNode_SetProperties(*args, **kwargs) + Children = property(GetChildren,SetChildren,doc="See `GetChildren` and `SetChildren`") + Content = property(GetContent,SetContent,doc="See `GetContent` and `SetContent`") + Name = property(GetName,SetName,doc="See `GetName` and `SetName`") + Next = property(GetNext,SetNext,doc="See `GetNext` and `SetNext`") + Parent = property(GetParent,SetParent,doc="See `GetParent` and `SetParent`") + Properties = property(GetProperties,SetProperties,doc="See `GetProperties` and `SetProperties`") + Type = property(GetType,SetType,doc="See `GetType` and `SetType`") _xrc.XmlNode_swigregister(XmlNode) def XmlNodeEasy(*args, **kwargs): @@ -497,6 +511,9 @@ class XmlDocument(_core.Object): """SetFileEncoding(self, String encoding)""" return _xrc.XmlDocument_SetFileEncoding(*args, **kwargs) + FileEncoding = property(GetFileEncoding,SetFileEncoding,doc="See `GetFileEncoding` and `SetFileEncoding`") + Root = property(GetRoot,SetRoot,doc="See `GetRoot` and `SetRoot`") + Version = property(GetVersion,SetVersion,doc="See `GetVersion` and `SetVersion`") _xrc.XmlDocument_swigregister(XmlDocument) def XmlDocumentFromStream(*args, **kwargs): @@ -518,8 +535,10 @@ class XmlResourceHandler(_core.Object): def __init__(self, *args, **kwargs): """__init__(self) -> XmlResourceHandler""" _xrc.XmlResourceHandler_swiginit(self,_xrc.new_XmlResourceHandler(*args, **kwargs)) - self._setCallbackInfo(self, XmlResourceHandler) + XmlResourceHandler._setCallbackInfo(self, self, XmlResourceHandler) + __swig_destroy__ = _xrc.delete_XmlResourceHandler + __del__ = lambda self : None; def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _xrc.XmlResourceHandler__setCallbackInfo(*args, **kwargs) @@ -642,6 +661,10 @@ class XmlResourceHandler(_core.Object): """GetFont(self, String param=FontString) -> Font""" return _xrc.XmlResourceHandler_GetFont(*args, **kwargs) + def GetAnimation(*args, **kwargs): + """GetAnimation(self, String param=AnimationString) -> wxAnimation""" + return _xrc.XmlResourceHandler_GetAnimation(*args, **kwargs) + def SetupWindow(*args, **kwargs): """SetupWindow(self, Window wnd)""" return _xrc.XmlResourceHandler_SetupWindow(*args, **kwargs) @@ -662,6 +685,15 @@ class XmlResourceHandler(_core.Object): """GetCurFileSystem(self) -> FileSystem""" return _xrc.XmlResourceHandler_GetCurFileSystem(*args, **kwargs) + Class = property(GetClass,doc="See `GetClass`") + CurFileSystem = property(GetCurFileSystem,doc="See `GetCurFileSystem`") + ID = property(GetID,doc="See `GetID`") + Instance = property(GetInstance,doc="See `GetInstance`") + Name = property(GetName,doc="See `GetName`") + Node = property(GetNode,doc="See `GetNode`") + Parent = property(GetParent,doc="See `GetParent`") + ParentAsWindow = property(GetParentAsWindow,doc="See `GetParentAsWindow`") + Resource = property(GetResource,doc="See `GetResource`") _xrc.XmlResourceHandler_swigregister(XmlResourceHandler) #---------------------------------------------------------------------------- @@ -676,7 +708,12 @@ TheXmlResource = XmlResource_Get() def _my_import(name): - mod = __import__(name) + try: + mod = __import__(name) + except ImportError: + import traceback + print traceback.format_exc() + raise components = name.split('.') for comp in components[1:]: mod = getattr(mod, comp)