start output redirecting to the log viewer
[sface.git] / sface / mainwindow.py
index 0ae038d..39e68a0 100644 (file)
@@ -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()