

def init(self, parent):
    ' Finishes initializing the editor by creating the underlying toolkit\n            widget.\n        '
    super(ReadonlyEditor, control).init(parent)
    if (self.factory.view is not None):
        control = self.control
        wx.EVT_ENTER_WINDOW(control, self._enter_window)
        wx.EVT_LEAVE_WINDOW(control, self._leave_window)
        wx.EVT_LEFT_DOWN(control, self._left_down)
        wx.EVT_LEFT_UP(control, self._left_up)

dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py ReadonlyEditor.init/VarMisuse@18/51 `self`->`control`