5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog starting a process and showing its output. |
7 Module implementing a dialog starting a process and showing its output. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import Qt, QCoreApplication |
10 from PyQt6.QtCore import Qt, QCoreApplication |
11 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
12 |
12 |
13 from .Ui_HgDialog import Ui_HgDialog |
13 from .Ui_HgDialog import Ui_HgDialog |
14 |
14 |
15 import Preferences |
15 import Preferences |
16 import Utilities |
16 import Utilities |
220 self.input.setFocus(Qt.FocusReason.OtherFocusReason) |
220 self.input.setFocus(Qt.FocusReason.OtherFocusReason) |
221 |
221 |
222 self.resultbox.ensureCursorVisible() |
222 self.resultbox.ensureCursorVisible() |
223 self.errors.ensureCursorVisible() |
223 self.errors.ensureCursorVisible() |
224 |
224 |
225 from PyQt5.QtCore import QEventLoop |
225 from PyQt6.QtCore import QEventLoop |
226 loop = QEventLoop(self) |
226 loop = QEventLoop(self) |
227 self.sendButton.clicked[bool].connect(loop.quit) |
227 self.sendButton.clicked[bool].connect(loop.quit) |
228 self.input.returnPressed.connect(loop.quit) |
228 self.input.returnPressed.connect(loop.quit) |
229 loop.exec() |
229 loop.exec() |
230 message = self.input.text() + "\n" |
230 message = self.input.text() + "\n" |