Pythonic gui format?
Fuzzyman
fuzzyman at gmail.com
Wed Feb 15 09:14:35 EST 2006
More information about the Python-list mailing list
Wed Feb 15 09:14:35 EST 2006
- Previous message (by thread): Pythonic gui format?
- Next message (by thread): Pythonic gui format?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
bruno at modulix wrote: > Fuzzyman wrote: > (snip) > > > You say you don't want an 'extra layer' between your GUI and Python - > > but your approach of using XML has the same drawback. Storing your 'GUI > > configuration' in a text based format is a nice idea, but you will need > > *something* to do the translation. > > Well, if the conf is valid Python, you've already get most of the > 'something to do the translation' for free !-) > Except he can't use ordinary dictionaries because they don't preserve order, which is one of his requirements... Your trivial example below redone with ConfigObj syntax : [window] widgets = , # empty list Code to read it : from configobj import ConfigObj gui_object = ConfigObj(filename) All thebest, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > > -- > bruno desthuilliers > python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for > p in 'onurb at xiludom.gro'.split('@')])"
- Previous message (by thread): Pythonic gui format?
- Next message (by thread): Pythonic gui format?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list