def work(self): ProcessCache.refresh() if ProcessCache.empty(): self.status_message("There are no running tasks") else: self.append_processes_to_output_view() ProcessCache.kill_all() self.append_to_output_view("\nAll running tasks killed!\n")