def clear_text(self, event):

        if not self._no_update:
            self.control.SetValue("")
            self.value = ""
            if self.factory.search_event_trait != '':
                setattr(self.object, self.factory.search_event_trait, True)
Handles the user pressing the cancel search button.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/search_editor.py/SearchEditor.clear_text