def start_file_search(self, search_directory): self.searching = True self.finder = util.gather_media_files(search_directory) self.progress_bar.start_pulsing() threads.call_on_ui_thread(self.make_progress)
def verify_results(self): finder = util.gather_media_files(self.tempdir) found = [] try: while (True): num_parsed, found = finder.next() except StopIteration: self.assertEquals(set(found), set(self.expectedFiles))
def verify_results(self): finder = util.gather_media_files(self.tempdir) found = [] try: while(True): num_parsed, found = finder.next() except StopIteration: self.assertEquals(set(found), set(self.expectedFiles))
def handle_search_clicked(widget): self.cancelled = False search_button.disable() cancel_button.enable() prev_button.disable() finish_button.disable() search_directory = FilenameType(self.search_directory) self.finder = util.gather_media_files(search_directory) progress_bar.start_pulsing() threads.call_on_ui_thread(make_progress)
def start_search(self): # only start a search if we haven't gathered anything, yet. if self.gathered_media_files is not None: return # this starts the search as soon as the dialog is built self.cancelled = False self.cancel_search_button.enable() self.search_prev_button.disable() self.search_next_button.disable() search_directory = FilenameType(self.search_directory) self.finder = util.gather_media_files(search_directory) self.progress_bar.start_pulsing() threads.call_on_ui_thread(self.make_search_progress)