def init ( self, parent ):
        if self.factory.readonly:
            self.control = wx.TextCtrl( parent, -1, self.str_value,
                                        style = wx.TE_READONLY )
            self.set_tooltip()
        else:
            super( SimpleEditor, self ).init( parent )
        self.control.SetBackgroundColour( self.ok_color )
        self.control.SetDropTarget( PythonDropTarget( self ) )

    #---------------------------------------------------------------------------
    #  Returns the text representation of a specified object trait value:
    #---------------------------------------------------------------------------
Finishes initializing the editor by creating the underlying toolkit
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/drop_editor.py/SimpleEditor.init