22 from E5Gui import E5MessageBox |
22 from E5Gui import E5MessageBox |
23 |
23 |
24 from .Ui_PyramidRoutesDialog import Ui_PyramidRoutesDialog |
24 from .Ui_PyramidRoutesDialog import Ui_PyramidRoutesDialog |
25 |
25 |
26 import Preferences |
26 import Preferences |
|
27 from Globals import strToQByteArray |
27 |
28 |
28 |
29 |
29 class PyramidRoutesDialog(QDialog, Ui_PyramidRoutesDialog): |
30 class PyramidRoutesDialog(QDialog, Ui_PyramidRoutesDialog): |
30 """ |
31 """ |
31 Class implementing a dialog showing the available routes. |
32 Class implementing a dialog showing the available routes. |
228 |
229 |
229 if self.passwordCheckBox.isChecked(): |
230 if self.passwordCheckBox.isChecked(): |
230 self.errors.insertPlainText(os.linesep) |
231 self.errors.insertPlainText(os.linesep) |
231 self.errors.ensureCursorVisible() |
232 self.errors.ensureCursorVisible() |
232 |
233 |
233 self.proc.write(inputTxt) |
234 self.proc.write(strToQByteArray(inputTxt)) |
234 |
235 |
235 self.passwordCheckBox.setChecked(False) |
236 self.passwordCheckBox.setChecked(False) |
236 self.input.clear() |
237 self.input.clear() |
237 |
238 |
238 def on_input_returnPressed(self): |
239 def on_input_returnPressed(self): |