def stop_search(self, event=None):
        "Cancel a search by setting its stop flag."
        self.__stop_search = True
Cancel a search by setting its stop flag.
recipes/Python/578154_Directory_Pruner_4/recipe-578154.py