示例#1
0
文件: run.py 项目: ViDA-NYU/reprozip
 def _download(self):
     selected = self.files_widget.selectedIndexes()[0].row()
     file_status = self.files_status[selected]
     picked, _ = QtWidgets.QFileDialog.getSaveFileName(
         self, "Pick destination",
         QtCore.QDir.currentPath() + '/' + file_status.name)
     if picked:
         record_usage(file_download=True)
         handle_error(self, reprounzip.download(
             self.directory, file_status.name, picked,
             unpacker=self.unpacker, root=self.root))
         self._file_changed()
示例#2
0
 def _download(self):
     selected = self.files_widget.selectedIndexes()[0].row()
     file_status = self.files_status[selected]
     picked = QtGui.QFileDialog.getSaveFileName(
         self, "Pick destination",
         QtCore.QDir.currentPath() + '/' + file_status.name)
     if picked:
         handle_error(
             self,
             reprounzip.download(self.directory,
                                 file_status.name,
                                 picked,
                                 unpacker=self.unpacker,
                                 root=self.root))
         self._file_changed()