16 |
16 |
17 class MicroPythonProgressInfoDialog(QDialog, Ui_MicroPythonProgressInfoDialog): |
17 class MicroPythonProgressInfoDialog(QDialog, Ui_MicroPythonProgressInfoDialog): |
18 """ |
18 """ |
19 Class implementing a dialog to show progress messages. |
19 Class implementing a dialog to show progress messages. |
20 """ |
20 """ |
|
21 |
21 def __init__(self, parent=None): |
22 def __init__(self, parent=None): |
22 """ |
23 """ |
23 Constructor |
24 Constructor |
24 |
25 |
25 @param parent reference to the parent widget |
26 @param parent reference to the parent widget |
26 @type QWidget |
27 @type QWidget |
27 """ |
28 """ |
28 super().__init__(parent) |
29 super().__init__(parent) |
29 self.setupUi(self) |
30 self.setupUi(self) |
30 |
31 |
31 @pyqtSlot(str) |
32 @pyqtSlot(str) |
32 def addMessage(self, message): |
33 def addMessage(self, message): |
33 """ |
34 """ |
34 Public slot to add a message to the progress display. |
35 Public slot to add a message to the progress display. |
35 |
36 |
36 @param message progress information to be shown |
37 @param message progress information to be shown |
37 @type str |
38 @type str |
38 """ |
39 """ |
39 tc = self.progressEdit.textCursor() |
40 tc = self.progressEdit.textCursor() |
40 tc.movePosition(QTextCursor.MoveOperation.End) |
41 tc.movePosition(QTextCursor.MoveOperation.End) |