From: Thierry Parmentelat Date: Fri, 17 Sep 2010 15:26:09 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.onelab.eu/git/sface X-Git-Tag: sface-0.1-1~8^2 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=8a7370e1d65ed72a93c745e8916bb0fa8f8881e9;hp=ae4178aa86de12d5ca165da42460f500ba4efba7 Merge branch 'master' of ssh://git.onelab.eu/git/sface --- 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)