src/eric7/MicroPython/MicroPythonProgressInfoDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
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)

eric ide

mercurial