eric6/MicroPython/MicroPythonProgressInfoDialog.py

branch
micropython
changeset 7083
217862c28319
child 7084
3eddfc540614
equal deleted inserted replaced
7082:ec199ef0cfc6 7083:217862c28319
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to show progress messages.
8 """
9
10 from PyQt5.QtCore import pyqtSlot
11 from PyQt5.QtWidgets import QDialog
12
13 from .Ui_MicroPythonProgressInfoDialog import Ui_MicroPythonProgressInfoDialog
14
15
16 class MicroPythonProgressInfoDialog(QDialog, Ui_MicroPythonProgressInfoDialog):
17 """
18 Class implementing a dialog to show progress messages.
19 """
20 def __init__(self, parent=None):
21 """
22 Constructor
23
24 @param parent reference to the parent widget
25 @type QWidget
26 """
27 super(MicroPythonProgressInfoDialog, self).__init__(parent)
28 self.setupUi(self)
29
30 @pyqtSlot(str)
31 def addMessage(self, message):
32 """
33 Public slot to add a message to the progress display.
34
35 @param message progress information to be shown
36 @type str
37 """
38 # TODO: not implemented yet

eric ide

mercurial