]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/xrc.py
Update virtuals to new API
[wxWidgets.git] / wxPython / src / msw / xrc.py
index 31946bfa96cf86081877e7f6239d2c1ba34df205..5bbd09e39e681d140a1cfdd0b17dcbdf2169abaa 100644 (file)
@@ -223,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"""
@@ -660,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)
@@ -703,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)