<s> """<STR_LIT>""" <EOL> from traits . api import HasTraits , Str , Instance , Property , Button , List , Enum <EOL> from traitsui . handler import Handler <EOL> from traitsui . ui_info import UIInfo <EOL> from traitsui . item import Item <EOL> from traitsui . view import View <EOL> from traits . trait_base import user_name_for , xgetattr <EOL> def TableEditor ( * args , ** kw ) : <EOL> from . value_column import ObjectColumn , ValueColumn <EOL> from traitsui . api import TableEditor as _E <EOL> return _E ( columns = [ ObjectColumn ( name = '<STR_LIT:name>' ) , ValueColumn ( name = '<STR_LIT:value>' ) ] ) <EOL> class TraitsViewObject ( HasTraits ) : <EOL> """<STR_LIT>""" <EOL> name = Str <EOL> parent = Instance ( HasTraits ) <EOL> class TVTKBaseHandler ( Handler ) : <EOL> """<STR_LIT>""" <EOL> info = Instance ( UIInfo ) <EOL> view_type = Enum ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> view = Property ( depends_on = '<STR_LIT>' ) <EOL> _full_traits_list = Property ( List , editor = TableEditor ) <EOL> def init_info ( self , info ) : <EOL> """<STR_LIT>""" <EOL> self . info = info <EOL> return <EOL> def _get__full_traits_list ( self ) : <EOL> """<STR_LIT>""" <EOL> return [ TraitsViewObject ( name = name , parent = self . info . object ) <EOL> for name in self . info . object . _full_traitnames_list_ ] <EOL> def _get_view ( self ) : <EOL> """<STR_LIT>""" <EOL> if self . view_type == "<STR_LIT>" : <EOL> view = self . info . object . trait_view ( '<STR_LIT>' ) <EOL> else : <EOL> view = self . info . object . trait_view ( '<STR_LIT>' ) <EOL> view . title = '<STR_LIT>' <EOL> return view </s>
