#NEWLINE# def traits_view( self ) : #NEWLINE# #INDENT# ' Build the dynamic dialog view.\n        ' #NEWLINE# buttons = [ 'OK' , 'Cancel' ] #NEWLINE# if self . show_apply : #NEWLINE# #INDENT# buttons = ( [ 'Apply' ] + buttons ) #NEWLINE# #UNINDENT# tabs_style = ( 'custom' if ( len ( buttons . _tabs ) > 1 ) else 'readonly' ) #NEWLINE# return View ( Item ( '_tabs' , editor = ListEditor ( page_name = '.name' , style = 'custom' , use_notebook = True , selected = '_selected' ) , show_label = False , style = tabs_style ) , buttons = buttons , kind = 'livemodal' , resizable = True , title = 'Preferences' )