<s> """<STR_LIT>""" <EOL> from traits . api import HasTraits , Str , Range , Bool , Enum <EOL> from traitsui . api import Item , Group , View , Label <EOL> class Person ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> first_name = Str <EOL> last_name = Str <EOL> age = Range ( <NUM_LIT:0> , <NUM_LIT> ) <EOL> legal_guardian = Str <EOL> school = Str <EOL> grade = Range ( <NUM_LIT:1> , <NUM_LIT:12> ) <EOL> marital_status = Enum ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> registered_voter = Bool ( False ) <EOL> military_service = Bool ( False ) <EOL> gen_group = Group ( <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> label = '<STR_LIT>' , <EOL> show_border = True <EOL> ) <EOL> child_group = Group ( <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> label = '<STR_LIT>' , <EOL> show_border = True , <EOL> visible_when = '<STR_LIT>' , <EOL> ) <EOL> adult_group = Group ( <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> Item ( name = '<STR_LIT>' ) , <EOL> label = '<STR_LIT>' , <EOL> show_border = True , <EOL> visible_when = '<STR_LIT>' , <EOL> ) <EOL> view = View ( <EOL> Group ( <EOL> gen_group , <EOL> '<STR_LIT>' , <EOL> Label ( "<STR_LIT>" ) , <EOL> '<STR_LIT>' , <EOL> child_group , <EOL> adult_group <EOL> ) , <EOL> title = '<STR_LIT>' , <EOL> resizable = True , <EOL> buttons = [ '<STR_LIT:OK>' ] <EOL> ) <EOL> demo = Person ( <EOL> first_name = "<STR_LIT>" , <EOL> last_name = "<STR_LIT>" , <EOL> age = <NUM_LIT:16> <EOL> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> demo . configure_traits ( ) </s>
