<s> """<STR_LIT>""" <EOL> from pyface . api import ApplicationWindow , GUI <EOL> from pyface . ipython_widget import IPythonWidget <EOL> from traits . api import Enum , HasTraits , Instance , Int , Str <EOL> from traitsui . api import View , Item <EOL> class Person ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> name = Str <EOL> age = Int ( <NUM_LIT> ) <EOL> gender = Enum ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> view = View ( <EOL> Item ( '<STR_LIT:name>' , resizable = True ) , <EOL> Item ( '<STR_LIT>' , resizable = True ) , <EOL> Item ( '<STR_LIT>' , resizable = True ) , <EOL> resizable = True , <EOL> ) <EOL> class MainWindow ( ApplicationWindow ) : <EOL> """<STR_LIT>""" <EOL> size = ( <NUM_LIT> , <NUM_LIT> ) <EOL> title = '<STR_LIT>' <EOL> person = Instance ( Person , ( ) ) <EOL> def _create_contents ( self , parent ) : <EOL> """<STR_LIT>""" <EOL> self . _ui = self . person . edit_traits ( kind = '<STR_LIT>' , parent = parent ) <EOL> return self . _ui . control <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> gui = GUI ( ) <EOL> window = MainWindow ( ) <EOL> window . open ( ) <EOL> gui . start_event_loop ( ) </s>
