Ejemplo n.º 1
0
 def _run(self):
     options = self.unpacker_options.currentWidget().options()
     if options is None:
         return
     runs = sorted(i.row() for i in self.runs_widget.selectedIndexes())
     if not runs:
         error_msg(self, "No run selected", 'warning')
         return
     handle_error(
         self,
         reprounzip.run(self.directory,
                        runs=runs,
                        unpacker=self.unpacker,
                        root=ROOT.INDEX_TO_OPTION[self.root.currentIndex()],
                        **options))
Ejemplo n.º 2
0
 def _run(self):
     options = self.unpacker_options.currentWidget().options()
     if options is None:
         return
     runs = sorted(i.row() for i in self.runs_widget.selectedIndexes())
     if not runs:
         error_msg(self, "No run selected", 'warning')
         return
     record_usage(run='%d/%d' % (len(runs), self.runs_widget.count()))
     handle_error(self, reprounzip.run(
         self.directory, runs=runs,
         unpacker=self.unpacker,
         root=ROOT.INDEX_TO_OPTION[self.root.currentIndex()],
         jupyter=self.run_jupyter_notebook.isChecked(),
         **options))
Ejemplo n.º 3
0
Archivo: run.py Proyecto: lcw/reprozip
 def _run(self):
     options = self.unpacker_options.currentWidget().options()
     if options is None:
         return
     runs = sorted(i.row() for i in self.runs_widget.selectedIndexes())
     if not runs:
         error_msg(self, "No run selected", 'warning')
         return
     record_usage(run='%d/%d' % (len(runs), self.runs_widget.count()))
     handle_error(
         self,
         reprounzip.run(self.directory,
                        runs=runs,
                        unpacker=self.unpacker,
                        root=ROOT.INDEX_TO_OPTION[self.root.currentIndex()],
                        jupyter=self.run_jupyter_notebook.isChecked(),
                        **options))