def _on_validate(self, P):
        '''Called whenever the search string changes
        
        This method will cancel any existing search that
        is in progress, then start a new search if the passed
        in string is not empty

        This is called from the entry widget validation command, so 
        even though we're not validating anything per se, we still
        need to return True or this method will stop being called. 
        '''
        self.reset()
        if len(P) > 0:
            self.begin(P)
        return True
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/widgets/searchentry.py/SearchEntry._on_validate/original