MCPcopy
hub / github.com/PyQt5/PyQt / run_command

Method run_command

QProcess/InteractiveRun.py:82–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self._cmdProcess.start()
81
82 def run_command(self):
83 self._init()
84 command = self.cmdEdit.text().strip()
85 if not command:
86 return
87 command = command.encode(sys.getdefaultencoding()) + os.linesep.encode(
88 sys.getdefaultencoding())
89 self._cmdProcess.writeData(command)
90
91 def on_started(self):
92 self.resultView.append('ping process started, pid: %s' %

Callers

nothing calls this directly

Calls 2

_initMethod · 0.95
textMethod · 0.45

Tested by

no test coverage detected