On Wednesday 21 August 2002 04:20 am, Michele Campeotto wrote: > DISCLAIMER: HORRIBLE code ahead! > > Michael McLay wrote: > > My goal is to populate a TreeModel with an XML tree. So far I've had no > > luck in getting started. I suspect that others on this list would really > > love to see an example that shows how to tie a XML DOM tree to the > > TreeModel. (An > > I don't have the specific example you're asking for, but I've done > some experimentation with TreeModel and come up with an example that > maps a filesystem to a TreeModel: > http://www.micampe.it/software/explorer/files/explorermodel.py > Note that I am nowhere near to understand how and why this code works > (I know, I've written it, so? ;), but I hope it can help you...
Thanks for the example. I think I can crib from it to make a DOM viewer. > Btw, have considered using TreeStore instead? I've thrown away that > code and used the simple TreeStore and it fits quite fine... Please, if it's not too much trouble, send an example of how this is done with TreeStore. I suspect TreeStore is a better solution for connecting data from the DOM to the viewer. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
