283 @pyqtSlot() |
283 @pyqtSlot() |
284 def on_sendButton_clicked(self): |
284 def on_sendButton_clicked(self): |
285 """ |
285 """ |
286 Private slot to send the input to the hg process. |
286 Private slot to send the input to the hg process. |
287 """ |
287 """ |
288 input = self.input.text() |
288 inputTxt = self.input.text() |
289 input += os.linesep |
289 inputTxt += os.linesep |
290 |
290 |
291 if self.passwordCheckBox.isChecked(): |
291 if self.passwordCheckBox.isChecked(): |
292 self.errors.insertPlainText(os.linesep) |
292 self.errors.insertPlainText(os.linesep) |
293 self.errors.ensureCursorVisible() |
293 self.errors.ensureCursorVisible() |
294 else: |
294 else: |
295 self.errors.insertPlainText(input) |
295 self.errors.insertPlainText(inputTxt) |
296 self.errors.ensureCursorVisible() |
296 self.errors.ensureCursorVisible() |
297 |
297 |
298 self.process.write(input) |
298 self.process.write(inputTxt) |
299 |
299 |
300 self.passwordCheckBox.setChecked(False) |
300 self.passwordCheckBox.setChecked(False) |
301 self.input.clear() |
301 self.input.clear() |
302 |
302 |
303 def on_input_returnPressed(self): |
303 def on_input_returnPressed(self): |