set verbose to True by default
[sface.git] / sface / mainwindow.py
index 5ba17f1..0ae038d 100644 (file)
@@ -58,6 +58,8 @@ class MainWindow(QWidget):
     def __init__(self, parent=None):
         QWidget.__init__(self, parent)
 
+        self.logWindow = LogWindow(self)
+
         self.pix = QLabel(self)
         self.config_screen = ConfigScreen(self)
         self.main_screen = MainScreen(self)
@@ -93,10 +95,9 @@ class MainWindow(QWidget):
                      self.showLogWindow)
 
     def showLogWindow(self, link):
-        log = LogWindow(self)
-        log.show()
-        log.raise_()
-        log.activateWindow()
+        self.logWindow.show()
+        self.logWindow.raise_()
+        self.logWindow.activateWindow()
 
     def animatePixmap(self, y):
         self.pix.move(0, y)