<s> from traits . api import * <EOL> from traitsui . api import * <EOL> class Camera ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> gain = Enum ( <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <EOL> desc = "<STR_LIT>" , <EOL> label = "<STR_LIT>" , ) <EOL> exposure = CInt ( <NUM_LIT:10> , <EOL> desc = "<STR_LIT>" , <EOL> label = "<STR_LIT>" , ) <EOL> def capture ( self ) : <EOL> """<STR_LIT>""" <EOL> print "<STR_LIT>" % ( <EOL> self . exposure , self . gain ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> camera = Camera ( ) <EOL> camera . configure_traits ( ) <EOL> camera . capture ( ) </s>
