Esempio n. 1
0
    def _launch_tool(self, terminal=False, moniter=False):
        buf = subprocess.PIPE if moniter else None
        proc = app.execute_shell(context=self.context,
                                 command=self.tool_name,
                                 terminal=terminal,
                                 stdout=buf,
                                 stderr=buf)

        if self.process_tracker:
            self.process_tracker.add_instance(self.context, self.tool_name, proc)
        if moniter:
            dlg = ProcessDialog(proc, self.tool_name)
            dlg.exec_()
Esempio n. 2
0
    def _launch_tool(self, terminal=False, moniter=False):
        buf = subprocess.PIPE if moniter else None
        proc = app.execute_shell(context=self.context,
                                 command=self.tool_name,
                                 terminal=terminal,
                                 stdout=buf,
                                 stderr=buf)

        if self.process_tracker:
            self.process_tracker.add_instance(self.context, self.tool_name,
                                              proc)
        if moniter:
            dlg = ProcessDialog(proc, self.tool_name)
            dlg.exec_()
Esempio n. 3
0
 def _open_shell(self):
     assert self.context()
     app.execute_shell(context=self.context(), terminal=True)
Esempio n. 4
0
 def _open_shell(self):
     assert self.context()
     app.execute_shell(context=self.context(), terminal=True)