예제 #1
0
파일: ToolWidget.py 프로젝트: rvsiy/rez
    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_()
예제 #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_()
예제 #3
0
 def _open_shell(self):
     assert self.context()
     app.execute_shell(context=self.context(), terminal=True)
예제 #4
0
 def _open_shell(self):
     assert self.context()
     app.execute_shell(context=self.context(), terminal=True)