21 from E5Gui import E5MessageBox |
21 from E5Gui import E5MessageBox |
22 |
22 |
23 from .Ui_PyramidDialog import Ui_PyramidDialog |
23 from .Ui_PyramidDialog import Ui_PyramidDialog |
24 |
24 |
25 import Preferences |
25 import Preferences |
26 from Globals import isWindowsPlatform, isMacPlatform |
26 from Globals import isWindowsPlatform, isMacPlatform, strToQByteArray |
27 |
27 |
28 |
28 |
29 class PyramidDialog(QDialog, Ui_PyramidDialog): |
29 class PyramidDialog(QDialog, Ui_PyramidDialog): |
30 """ |
30 """ |
31 Class implementing a dialog starting a process and showing its output. |
31 Class implementing a dialog starting a process and showing its output. |
276 self.errors.ensureCursorVisible() |
276 self.errors.ensureCursorVisible() |
277 else: |
277 else: |
278 self.resultbox.insertPlainText(inputTxt) |
278 self.resultbox.insertPlainText(inputTxt) |
279 self.resultbox.ensureCursorVisible() |
279 self.resultbox.ensureCursorVisible() |
280 |
280 |
281 self.proc.write(inputTxt) |
281 self.proc.write(strToQByteArray(inputTxt)) |
282 |
282 |
283 self.passwordCheckBox.setChecked(False) |
283 self.passwordCheckBox.setChecked(False) |
284 self.input.clear() |
284 self.input.clear() |
285 |
285 |
286 def on_input_returnPressed(self): |
286 def on_input_returnPressed(self): |