eric6/VirtualEnv/VirtualenvExecDialog.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7258:aff39db4dacc 7259:7c017076c12e
136 136
137 @param exitCode exit code of the process (integer) 137 @param exitCode exit code of the process (integer)
138 @param exitStatus exit status of the process (QProcess.ExitStatus) 138 @param exitStatus exit status of the process (QProcess.ExitStatus)
139 @keyparam giveUp flag indicating to not start another attempt (boolean) 139 @keyparam giveUp flag indicating to not start another attempt (boolean)
140 """ 140 """
141 if self.__process is not None and \ 141 if (
142 self.__process.state() != QProcess.NotRunning: 142 self.__process is not None and
143 self.__process.state() != QProcess.NotRunning
144 ):
143 self.__process.terminate() 145 self.__process.terminate()
144 QTimer.singleShot(2000, self.__process.kill) 146 QTimer.singleShot(2000, self.__process.kill)
145 self.__process.waitForFinished(3000) 147 self.__process.waitForFinished(3000)
146 148
147 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) 149 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True)

eric ide

mercurial