X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Flogwindow.py;fp=sface%2Flogwindow.py;h=c5c41dd1714cab4fd4714b719dd7a05384e41d1f;hp=a77eab214ee505647e5ac6579eca45a40a17a50f;hb=8ec23b298e338e6005b7a4d12480cc06a38ec03e;hpb=08264e3523d39d7dc843c3a96a0a2849c6eb8a49 diff --git a/sface/logwindow.py b/sface/logwindow.py index a77eab2..c5c41dd 100644 --- a/sface/logwindow.py +++ b/sface/logwindow.py @@ -24,6 +24,7 @@ class LogWindow(QDialog): QWidget.__init__(self, parent) self.setWindowTitle("SFI Log") self.text = QTextBrowser(self) + self.text.ensureCursorVisible() layout = QVBoxLayout() layout.addWidget(self.text) @@ -40,6 +41,9 @@ class LogWindow(QDialog): def update(self): self.text.setText(self.logio.getText()) + c = self.text.textCursor() + c.movePosition(QTextCursor.End) + self.text.setTextCursor(c)