From 0c0ed5cf347035d49af431066c5495542b0ee5ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 14 Sep 2010 15:26:56 +0200 Subject: [PATCH] keep logwindow as a child of mainwindow --- sface/mainwindow.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sface/mainwindow.py b/sface/mainwindow.py index 5ba17f1..0ae038d 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -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) -- 2.43.0