X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sfawindow.py;h=8fd484e3520d2b5620305200be0b52bb6ba896db;hp=38ec167d0eb5bd1d9708a25050c7a62f591aca7b;hb=4107f1e02b91e56ce5ee06f30bbf4d0ae180a3a9;hpb=d8beeb8ad0c9cf2eab771d68e5006c5bb94d521b diff --git a/sfawindow.py b/sfawindow.py index 38ec167..8fd484e 100644 --- a/sfawindow.py +++ b/sfawindow.py @@ -1,5 +1,5 @@ -from PyQt4.QtCore import SIGNAL +from PyQt4.QtCore import Qt, SIGNAL from PyQt4.QtGui import QWidget, QStackedWidget, \ QVBoxLayout, QLabel @@ -20,6 +20,7 @@ class SfaWindow(QWidget): self.screens.addWidget(self.config_screen) self.switch = QLabel(self.config_screen.getLabelText(), self) + self.switch.setAlignment(Qt.AlignRight) layout = QVBoxLayout() layout.addWidget(self.switch) @@ -31,7 +32,6 @@ class SfaWindow(QWidget): self.toScreen) def toScreen(self, link): - print link if link == self.config_screen.name: self.toConfigScreen() elif link == self.main_screen.name: