def popup_right_menu(self, widget, x, y, item, select_items): menu_items = [ # (None, _("优先转换"), self.set_job_priority, item), (None, _("Open directory"), lambda : utils.open_file_directory(item.output_path)), None, (None, _("Delete task"), self.delete_job, item), (None, _("Clear finished tasks"), self.delete_finish_jobs) ] Menu(menu_items, True).show((int(x), int(y)))
def open_song_location(self, widget): utils.open_file_directory(self.song.get_path())
def open_song_dir(self): if len(self.select_rows) > 0: song = self.items[self.select_rows[0]].get_song() if song.exists(): utils.open_file_directory(song.get_path())