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_()
def _open_shell(self): assert self.context() app.execute_shell(context=self.context(), terminal=True)