eric6/MicroPython/MicroPythonProgressInfoDialog.py

branch
micropython
changeset 7084
3eddfc540614
parent 7083
217862c28319
child 7229
53054eb5b15a
--- a/eric6/MicroPython/MicroPythonProgressInfoDialog.py	Thu Jul 25 19:55:40 2019 +0200
+++ b/eric6/MicroPython/MicroPythonProgressInfoDialog.py	Fri Jul 26 20:05:49 2019 +0200
@@ -7,7 +7,10 @@
 Module implementing a dialog to show progress messages.
 """
 
+from __future__ import unicode_literals
+
 from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtGui import QTextCursor
 from PyQt5.QtWidgets import QDialog
 
 from .Ui_MicroPythonProgressInfoDialog import Ui_MicroPythonProgressInfoDialog
@@ -35,4 +38,8 @@
         @param message progress information to be shown
         @type str
         """
-        # TODO: not implemented yet
+        tc = self.progressEdit.textCursor()
+        tc.movePosition(QTextCursor.End)
+        self.progressEdit.setTextCursor(tc)
+        self.progressEdit.appendHtml(message)
+        self.progressEdit.ensureCursorVisible()

eric ide

mercurial