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
start output redirecting to the log viewer
[sface.git]
/
sface
/
mainwindow.py
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
0ae038d
..
39e68a0
100644
(file)
--- a/
sface/mainwindow.py
+++ b/
sface/mainwindow.py
@@
-1,5
+1,6
@@
import os
import os
+import sys
import time
from PyQt4.QtCore import *
import time
from PyQt4.QtCore import *
@@
-94,8
+95,12
@@
class MainWindow(QWidget):
self.connect(self.log, SIGNAL('linkActivated(QString)'),
self.showLogWindow)
self.connect(self.log, SIGNAL('linkActivated(QString)'),
self.showLogWindow)
+ def redirectOutputToLog(self):
+ self.logWindow.redirectOutput()
+
def showLogWindow(self, link):
self.logWindow.show()
def showLogWindow(self, link):
self.logWindow.show()
+ self.logWindow.resize(500, 500)
self.logWindow.raise_()
self.logWindow.activateWindow()
self.logWindow.raise_()
self.logWindow.activateWindow()