Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

For this usage I'd suggest a class.
See http://www.python.org/dev/peps/pep-3115/ the example 
containing "OrderedClass".
With a little work, your code could look like:

class Interface(TabbedPane):
   class FirstTab(Pane):
        label = 'First Tab'
        LineEdit('First Name', length=20)
        LineEdit('Last Name', length=30)
        ComboBox('Title', length=10,
                 list=['Mr', 'Mrs', 'Ms', 'Dr', 'BDFL'])
   class SecondTab(Pane):
        label = 'Second Tab'
        LineEdit('City', length=20)
        LineEdit('Street', length=30)

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5579>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to