def init ( self, parent ):
        self.control = QtGui.QLineEdit()
        self.control.setReadOnly(True)

        pal = QtGui.QPalette(self.control.palette())
        pal.setColor(QtGui.QPalette.Base, ReadonlyColor)
        self.control.setPalette(pal)

    #---------------------------------------------------------------------------
    #  Updates the editor when the object trait changes external to the editor:
    #
    #  (Should normally be overridden in a subclass)
    #---------------------------------------------------------------------------
path_exists_and_not_empty(path:str) -> boolean
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/boolean_editor.py/ReadonlyEditor.init--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/application_server.py/RequestHandler.path_exists_and_not_empty