git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
auto scroll log
[sface.git]
/
sface
/
logwindow.py
diff --git
a/sface/logwindow.py
b/sface/logwindow.py
index
a77eab2
..
c5c41dd
100644
(file)
--- 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)
QWidget.__init__(self, parent)
self.setWindowTitle("SFI Log")
self.text = QTextBrowser(self)
+ self.text.ensureCursorVisible()
layout = QVBoxLayout()
layout.addWidget(self.text)
layout = QVBoxLayout()
layout.addWidget(self.text)
@@
-40,6
+41,9
@@
class LogWindow(QDialog):
def update(self):
self.text.setText(self.logio.getText())
def update(self):
self.text.setText(self.logio.getText())
+ c = self.text.textCursor()
+ c.movePosition(QTextCursor.End)
+ self.text.setTextCursor(c)