def search(self, keyword, count=30):
        kwargs = {}
        kwargs['search_value'] = keyword
        root = self.root_directory
        entries = root._load_entries(func=self._req_files_search,
                                     count=count, page=1, **kwargs)

        res = []
        for entry in entries:
            if 'pid' in entry:
                res.append(_instantiate_directory(self, entry))
            else:
                res.append(_instantiate_file(self, entry))
        return res
Function for pausing and continuing the animation on mouse click
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.search--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/viz/topomap.py/_pause_anim