O'Reilly logo

XML Processing with Python by Sean McGrath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

17.5. The Complete Source Code for C3

 CD-ROM reference=17013.txt """ C3 -- (Which is pronounced "See Tree" in Dublin) -- An XML Tree Editor/Viewer """ import sys,string,os # Import optimized cStringIO if available, otherwise StringIO. try: import cStringIO StringIO = cStringIO except ImportError: import StringIO # Import wxPython functionality. from wxPython.wx import * # Import the Pyxie XML processing library. from pyxie import * # Useful constants for differentiating between Element nodes # and data # nodes in wxTreeCtrl controls ELEMENT = 1 DATA = 0 # The del key is "hooked" to delete branched from wxTreeCtrl # controls. DEL_KEY = 127 class AttributeEditorDialog (wxDialog): """ Attribute editing modal dialog window """ def __init__(self,parent,AV): ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required