src/eric7/VirtualEnv/VirtualenvUpgradeExecDialog.py

branch
eric7
changeset 10433
328f3ec4b77a
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10432:2fe91fe443dd 10433:328f3ec4b77a
68 def start(self, arguments): 68 def start(self, arguments):
69 """ 69 """
70 Public slot to start the virtualenv command. 70 Public slot to start the virtualenv command.
71 71
72 @param arguments commandline arguments for virtualenv/pyvenv program 72 @param arguments commandline arguments for virtualenv/pyvenv program
73 (list of strings) 73 @type list of str
74 """ 74 """
75 if self.__callIndex == 0: 75 if self.__callIndex == 0:
76 # first attempt, add a given python interpreter and do 76 # first attempt, add a given python interpreter and do
77 # some other setup 77 # some other setup
78 self.errorGroup.hide() 78 self.errorGroup.hide()
98 98
99 def on_buttonBox_clicked(self, button): 99 def on_buttonBox_clicked(self, button):
100 """ 100 """
101 Private slot called by a button of the button box clicked. 101 Private slot called by a button of the button box clicked.
102 102
103 @param button button that was clicked (QAbstractButton) 103 @param button button that was clicked
104 @type QAbstractButton
104 """ 105 """
105 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): 106 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close):
106 self.accept() 107 self.accept()
107 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): 108 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel):
108 self.__finish(0, 0, giveUp=True) 109 self.__finish(0, 0, giveUp=True)
113 Private slot called when the process finished. 114 Private slot called when the process finished.
114 115
115 It is called when the process finished or 116 It is called when the process finished or
116 the user pressed the button. 117 the user pressed the button.
117 118
118 @param exitCode exit code of the process (integer) 119 @param exitCode exit code of the process
119 @param exitStatus exit status of the process (QProcess.ExitStatus) 120 @type int
120 @param giveUp flag indicating to not start another attempt (boolean) 121 @param exitStatus exit status of the process
122 @type QProcess.ExitStatus
123 @param giveUp flag indicating to not start another attempt
124 @type bool
121 """ 125 """
122 if ( 126 if (
123 self.__process is not None 127 self.__process is not None
124 and self.__process.state() != QProcess.ProcessState.NotRunning 128 and self.__process.state() != QProcess.ProcessState.NotRunning
125 ): 129 ):
197 201
198 def __logOutput(self, s): 202 def __logOutput(self, s):
199 """ 203 """
200 Private method to log some output. 204 Private method to log some output.
201 205
202 @param s output string to log (string) 206 @param s output string to log
207 @type str
203 """ 208 """
204 self.contents.insertPlainText(s) 209 self.contents.insertPlainText(s)
205 self.contents.ensureCursorVisible() 210 self.contents.ensureCursorVisible()
206 211
207 def __logError(self, s): 212 def __logError(self, s):
208 """ 213 """
209 Private method to log an error. 214 Private method to log an error.
210 215
211 @param s error string to log (string) 216 @param s error string to log
217 @type str
212 """ 218 """
213 self.errorGroup.show() 219 self.errorGroup.show()
214 self.errors.insertPlainText(s) 220 self.errors.insertPlainText(s)
215 self.errors.ensureCursorVisible() 221 self.errors.ensureCursorVisible()
216 222

eric ide

mercurial