~ubuntu-branches/ubuntu/utopic/python-traitsui/utopic

« back to all changes in this revision

Viewing changes to integrationtests/ui/set_dynamic_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-09 13:57:39 UTC
  • Revision ID: james.westby@ubuntu.com-20110709135739-x5u20q86huissmn1
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  Copyright (c) 2007, Enthought, Inc.
 
2
#  License: BSD Style.
 
3
 
 
4
from traits.api    import *
 
5
from traitsui.api import *
 
6
 
 
7
class Team ( HasTraits ):
 
8
 
 
9
    batting_order = List( Str )
 
10
    roster        = List( [ 'Tom', 'Dick', 'Harry', 'Sally' ], Str )
 
11
 
 
12
    view = View( Item( 'batting_order', editor = SetEditor( name    = 'roster',
 
13
                                                            ordered = True ) ),
 
14
                 '_', 'roster@',
 
15
                 height=500,
 
16
                 resizable=True)
 
17
 
 
18
if __name__ == '__main__':
 
19
    Team().configure_traits()