82 @param e close event (QCloseEvent) |
82 @param e close event (QCloseEvent) |
83 """ |
83 """ |
84 if self.process is not None and \ |
84 if self.process is not None and \ |
85 self.process.state() != QProcess.NotRunning: |
85 self.process.state() != QProcess.NotRunning: |
86 self.process.terminate() |
86 self.process.terminate() |
87 QTimer.singleShot(2000, self.process, SLOT('kill()')) |
87 QTimer.singleShot(2000, self.process.kill) |
88 self.process.waitForFinished(3000) |
88 self.process.waitForFinished(3000) |
89 |
89 |
90 e.accept() |
90 e.accept() |
91 |
91 |
92 def start(self, fn, noEntries = 0): |
92 def start(self, fn, noEntries = 0): |