コード例 #1
0
 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)))
コード例 #2
0
 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)))
コード例 #3
0
 def open_song_location(self, widget):
     utils.open_file_directory(self.song.get_path())
コード例 #4
0
 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())
コード例 #5
0
 def open_song_location(self, widget):
     utils.open_file_directory(self.song.get_path())
コード例 #6
0
 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())