git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
154bcc2
)
keep logwindow as a child of mainwindow
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Tue, 14 Sep 2010 13:26:56 +0000
(15:26 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Tue, 14 Sep 2010 13:26:56 +0000
(15:26 +0200)
sface/mainwindow.py
patch
|
blob
|
history
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
5ba17f1
..
0ae038d
100644
(file)
--- a/
sface/mainwindow.py
+++ b/
sface/mainwindow.py
@@
-58,6
+58,8
@@
class MainWindow(QWidget):
def __init__(self, parent=None):
QWidget.__init__(self, parent)
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)
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):
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)
def animatePixmap(self, y):
self.pix.move(0, y)