Pythonic gui format?
bruno at modulix
onurb at xiludom.gro
Wed Feb 15 12:13:23 EST 2006
Fuzzyman wrote:
> 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...
Except that dict ordering (or lack of) is not a problem here, cf my
other posts about this !-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list