git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read configuration using SfaData
[sface.git]
/
sfascreen.py
diff --git
a/sfascreen.py
b/sfascreen.py
index
4a0899c
..
cca15c7
100644
(file)
--- a/
sfascreen.py
+++ b/
sfascreen.py
@@
-1,5
+1,6
@@
import sys
import sys
+from PyQt4.QtCore import Qt
from PyQt4.QtGui import QWidget, QLabel, QVBoxLayout
class SfaScreen(QWidget):
from PyQt4.QtGui import QWidget, QLabel, QVBoxLayout
class SfaScreen(QWidget):
@@
-15,13
+16,15
@@
class SfaScreen(QWidget):
self.name = name
self.title = title
self.widget = widget
self.name = name
self.title = title
self.widget = widget
- self.label = QLabel(self.title, self)
+ self.label = QLabel("<b>%s</b>" % self.title, self)
+ self.label.setScaledContents(False)
layout = QVBoxLayout(self)
layout.addWidget(self.label)
layout = QVBoxLayout(self)
layout.addWidget(self.label)
+ layout.addStretch()
layout.addWidget(self.widget)
self.setLayout(layout)
def getLabelText(self):
layout.addWidget(self.widget)
self.setLayout(layout)
def getLabelText(self):
- return "<a href='%s'>%s</a>" % (self.name, self.name)
+ return "<a href='%s'>
Go to
%s</a>" % (self.name, self.name)