5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show progress messages. |
7 Module implementing a dialog to show progress messages. |
8 """ |
8 """ |
9 |
9 |
|
10 from __future__ import unicode_literals |
|
11 |
10 from PyQt5.QtCore import pyqtSlot |
12 from PyQt5.QtCore import pyqtSlot |
|
13 from PyQt5.QtGui import QTextCursor |
11 from PyQt5.QtWidgets import QDialog |
14 from PyQt5.QtWidgets import QDialog |
12 |
15 |
13 from .Ui_MicroPythonProgressInfoDialog import Ui_MicroPythonProgressInfoDialog |
16 from .Ui_MicroPythonProgressInfoDialog import Ui_MicroPythonProgressInfoDialog |
14 |
17 |
15 |
18 |
33 Public slot to add a message to the progress display. |
36 Public slot to add a message to the progress display. |
34 |
37 |
35 @param message progress information to be shown |
38 @param message progress information to be shown |
36 @type str |
39 @type str |
37 """ |
40 """ |
38 # TODO: not implemented yet |
41 tc = self.progressEdit.textCursor() |
|
42 tc.movePosition(QTextCursor.End) |
|
43 self.progressEdit.setTextCursor(tc) |
|
44 self.progressEdit.appendHtml(message) |
|
45 self.progressEdit.ensureCursorVisible() |