<s> """<STR_LIT>""" <EOL> from traits . api import HasTraits , Str , Trait <EOL> from traitsui . api import Item , Group , View , ImageEnumEditor <EOL> image_list = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> class Dummy ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> x = Str <EOL> view = View ( "<STR_LIT:U+0020>" ) <EOL> class ImageEnumEditorDemo ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> image_from_list = Trait ( editor = ImageEnumEditor ( values = image_list , <EOL> prefix = '<STR_LIT>' , <EOL> suffix = '<STR_LIT>' , <EOL> cols = <NUM_LIT:4> , <EOL> klass = Dummy ) , <EOL> * image_list ) <EOL> img_group = Group ( 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>' , <EOL> style = '<STR_LIT>' , <EOL> label = '<STR_LIT>' ) ) <EOL> view1 = View ( img_group , <EOL> title = '<STR_LIT>' , <EOL> buttons = [ '<STR_LIT:OK>' ] ) <EOL> popup = ImageEnumEditorDemo ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> popup . configure_traits ( ) </s>
