#NEWLINE# def init( self , parent ) : #NEWLINE# #INDENT# ' Finishes initializing the editor by creating the underlying toolkit\n            widget.\n        ' #NEWLINE# trait_handler = self . factory . trait_handler #NEWLINE# if ( trait_handler is None ) : #NEWLINE# #INDENT# trait_handler = self . object . base_trait ( self . name ) . handler #NEWLINE# #UNINDENT# self . _trait_handler = trait_handler #NEWLINE# self . control = wxsp . ScrolledPanel ( parent , ( - 1 ) ) #NEWLINE# self . control . SetBackgroundColour ( parent . GetBackgroundColour ( ) ) #NEWLINE# self . control . SetAutoLayout ( True ) #NEWLINE# editor = self . factory . editor #NEWLINE# if ( editor is None ) : #NEWLINE# #INDENT# editor = trait_handler . item_trait . get_editor ( ) #NEWLINE# #UNINDENT# self . _editor = getattr ( trait_handler , self . kind ) #NEWLINE# extended_name = self . extended_name . replace ( '.' , ':' ) #NEWLINE# self . context_object . on_trait_change ( self . update_editor_item , ( extended_name + '_items?' ) , dispatch = 'ui' ) #NEWLINE# self . set_tooltip ( )