def focusOutEvent(self, event):
        if len(self.text()) == 0:
            self._set_descriptive_text()

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