<s> from traits . api import Enum , List , Str <EOL> from traitsui . api import Handler , View , Item , CheckListEditor <EOL> class CheckListTest ( Handler ) : <EOL> value = List ( editor = CheckListEditor ( name = '<STR_LIT>' , cols = <NUM_LIT:5> ) ) <EOL> values = List ( Str ) <EOL> values_text = Str ( '<STR_LIT>' ) <EOL> simple_view = View ( '<STR_LIT:value>' , '<STR_LIT>' ) <EOL> custom_view = View ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def __init__ ( self , ** traits ) : <EOL> super ( CheckListTest , self ) . __init__ ( ** traits ) <EOL> self . _values_text_changed ( ) <EOL> def _values_text_changed ( self ) : <EOL> self . values = self . values_text . split ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> clt = CheckListTest ( ) <EOL> clt . configure_traits ( view = '<STR_LIT>' ) <EOL> print '<STR_LIT>' , clt . value <EOL> clt . configure_traits ( view = '<STR_LIT>' ) <EOL> print '<STR_LIT>' , clt . value </s>
