Pythonic gui format?

bruno at modulix onurb at xiludom.gro
Wed Feb 15 06:50:02 EST 2006


Gregory Petrosyan wrote:
> Bruno: in your original example, how can it be specified that image
> should be placed before text? Of course, it  *can*  be done with one
> extra level of wrapping of gui elements in list... did you mean that?

Yes. That's a pretty straightforward translation of the real Python's
object structure:

class Window(...):
  def __init__(self):
    self._widgets = []

=>

window = {
  'widgets' : [],
}

-- 
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