]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_xrc_ex.py
move wxPython to new trunk
[wxWidgets.git] / wxPython / src / _xrc_ex.py
diff --git a/wxPython/src/_xrc_ex.py b/wxPython/src/_xrc_ex.py
deleted file mode 100644 (file)
index 53abd3d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#----------------------------------------------------------------------------
-# 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):
-    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)
-    return mod
-
-
-class XmlSubclassFactory_Python(XmlSubclassFactory):
-    def __init__(self):
-        XmlSubclassFactory.__init__(self)
-
-    def Create(self, className):
-        assert className.find('.') != -1, "Module name must be specified!"
-        mname = className[:className.rfind('.')]
-        cname = className[className.rfind('.')+1:]
-        module = _my_import(mname)
-        klass = getattr(module, cname)
-        inst = klass()
-        return inst
-
-
-XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
-
-#----------------------------------------------------------------------------