API Reference for Enthought Tool Suite 3.0.1
Traits UI tools for viewing the XML tree of SVG files.
known_namespaces = { Const('{http://www.w3.org/2000/svg}') : Const('svg'), Const('{http://www.w3.org/2000/02/svg/testsuite/description/}') : Const('testcase'), Const('{http://www.w3.org/1999/xlink}') : Const('xlink'), Const('{http://www.w3.org/XML/1998/namespace}') : Const('xml'), Const('{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}') : Const('sodipodi'), Const('{http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd}') : Const('sodipodi'), Const('{http://purl.org/dc/elements/1.1/}') : Const('dc'), Const('{http://web.resource.org/cc/}') : Const('cc'), Const('{http://www.w3.org/1999/02/22-rdf-syntax-ns#}') : Const('rdf'), Const('{http://www.inkscape.org/namespaces/inkscape}') : Const('inkscape'), Const('{http://ns.adobe.com/AdobeIllustrator/10.0/}') : Const('adobei'), Const('{http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/}') : Const('adobea'), Const('{http://ns.adobe.com/Graphs/1.0/}') : Const('graphs'), Const('{http://ns.adobe.com/Extensibility/1.0/}') : Const('adobex') }
xml_tree_editor = tui.TreeEditor(nodes = [ tui.TreeNode(node_for = [ Element ], children = 'kids', label = 'label', menu = False), tui.TreeNode(node_for = [ Attribute ], children = '', label = 'label', menu = False) ], editable = False, show_icons = False)
Normalize XML names to abbreviate namespaces.
Convert an ElementTree Element to the view models for viewing in the TreeEditor.
| Local name | Refers to |
|---|---|
| HasTraits | enthought.traits.has_traits.HasTraits |
| List | enthought.traits.trait_types.List |
| Property | enthought.traits.traits.Property |
| Str | enthought.traits.trait_types.Str |
© Copyright 2002-2008 Enthought, Inc.