<s> """<STR_LIT>""" <EOL> from traits . api import HasTraits , Code <EOL> from traitsui . api import Item , Group , View <EOL> class CodeEditorDemo ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> code_sample = Code ( '<STR_LIT>' ) <EOL> code_group = Group ( <EOL> Item ( '<STR_LIT>' , style = '<STR_LIT>' , label = '<STR_LIT>' ) , <EOL> Item ( '<STR_LIT:_>' ) , <EOL> Item ( '<STR_LIT>' , style = '<STR_LIT>' , label = '<STR_LIT>' ) , <EOL> Item ( '<STR_LIT:_>' ) , <EOL> Item ( '<STR_LIT>' , style = '<STR_LIT:text>' , label = '<STR_LIT>' ) , <EOL> Item ( '<STR_LIT:_>' ) , <EOL> Item ( '<STR_LIT>' , style = '<STR_LIT>' , label = '<STR_LIT>' ) <EOL> ) <EOL> view = View ( <EOL> code_group , <EOL> title = '<STR_LIT>' , <EOL> buttons = [ '<STR_LIT:OK>' ] ) <EOL> demo = CodeEditorDemo ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> demo . configure_traits ( ) </s>
