def focusInEvent(self, event):
        palette = QtGui.QApplication.instance().palette()
        self.setPalette(palette)

        if self.text() == self._desc:
            self.setText('')
            self.update()

        super(SearchWidget, self).focusInEvent(event)
Handles accepting focus.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/search_editor.py/SearchWidget.focusInEvent