コード例 #1
0
 def __downloads_treeview_row_activated(self, treeview, path, column):
     """Called when a download is double-clicked. Opens the file with the
     associated program."""
     download = self.downloads_model[path][0]
     if download:
         if not download.is_metalink:
             gui.open_file_on_screen(download.file, treeview.get_screen())
コード例 #2
0
 def __open_imi_activate(self, imagemenuitem):
     """Opens the downloaded file with the associated program."""
     downloads = gui.get_selected_values(self.downloads_treeview)
     if downloads:
         gui.open_file_on_screen(downloads[0].file,
                 imagemenuitem.get_screen())