MCPcopy Create free account
hub / github.com/PyQt5/PyQt / closeEvent

Method closeEvent

QProcess/InteractiveRun.py:58–64  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

56 self._init()
57
58 def closeEvent(self, event):
59 if self._cmdProcess:
60 self._cmdProcess.writeData('exit'.encode() + os.linesep.encode())
61 self._cmdProcess.waitForFinished()
62 if self._cmdProcess:
63 self._cmdProcess.terminate()
64 super(Window, self).closeEvent(event)
65
66 def _init(self):
67 if self._cmdProcess:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected