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")
def work(self): ProcessCache.refresh() if ProcessCache.empty(): self.status_message("There are no running tasks") else: self.procs = ProcessCache.get() quick_panel_list = [[process.last_command, process.working_dir, 'PID: %d' % process.pid] for process in self.procs] self.show_quick_panel(quick_panel_list, self.kill_process, font=0)
def work(self): ProcessCache.refresh() if ProcessCache.empty(): self.status_message("There are no running tasks") else: self.procs = ProcessCache.get() quick_panel_list = [[ process.last_command, process.working_dir, 'PID: %d' % process.pid ] for process in self.procs] self.show_quick_panel(quick_panel_list, self.kill_process, font=0)