134 |
134 |
135 def closeEvent(self, e): |
135 def closeEvent(self, e): |
136 """ |
136 """ |
137 Protected slot implementing a close event handler. |
137 Protected slot implementing a close event handler. |
138 |
138 |
139 @param e close event (QCloseEvent) |
139 @param e close event |
|
140 @type QCloseEvent |
140 """ |
141 """ |
141 if ( |
142 if ( |
142 self.__process is not None |
143 self.__process is not None |
143 and self.__process.state() != QProcess.ProcessState.NotRunning |
144 and self.__process.state() != QProcess.ProcessState.NotRunning |
144 ): |
145 ): |
357 @pyqtSlot(int, QProcess.ExitStatus) |
358 @pyqtSlot(int, QProcess.ExitStatus) |
358 def __procFinished(self, exitCode, exitStatus): |
359 def __procFinished(self, exitCode, exitStatus): |
359 """ |
360 """ |
360 Private slot connected to the finished signal. |
361 Private slot connected to the finished signal. |
361 |
362 |
362 @param exitCode exit code of the process (integer) |
363 @param exitCode exit code of the process |
363 @param exitStatus exit status of the process (QProcess.ExitStatus) |
364 @type int |
|
365 @param exitStatus exit status of the process |
|
366 @type QProcess.ExitStatus |
364 """ |
367 """ |
365 self.__finish() |
368 self.__finish() |
366 |
369 |
367 def __readStdout(self): |
370 def __readStdout(self): |
368 """ |
371 """ |