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
work on status bar
[sface.git]
/
sface
/
screens
/
sfascreen.py
diff --git
a/sface/screens/sfascreen.py
b/sface/screens/sfascreen.py
index
cb8a266
..
d8d62e7
100644
(file)
--- a/
sface/screens/sfascreen.py
+++ b/
sface/screens/sfascreen.py
@@
-6,6
+6,7
@@
from PyQt4.QtGui import *
class SfaScreen(QWidget):
def __init__(self, parent):
QWidget.__init__(self, parent)
class SfaScreen(QWidget):
def __init__(self, parent):
QWidget.__init__(self, parent)
+ self.mainwin = parent
self.name = self.title = self.widget = None
def init(self, widget, name, title):
self.name = self.title = self.widget = None
def init(self, widget, name, title):
@@
-16,14
+17,16
@@
class SfaScreen(QWidget):
self.name = name
self.title = title
self.widget = widget
self.name = name
self.title = title
self.widget = widget
- self.label = QLabel("<b>%s</b>" % self.title, self)
- self.label.setScaledContents(False)
layout = QVBoxLayout(self)
layout = QVBoxLayout(self)
- layout.addWidget(self.label)
layout.addWidget(self.widget)
layout.addWidget(self.widget)
-
self.setLayout(layout)
self.setLayout(layout)
- def getL
abel
Text(self):
+ def getL
ink
Text(self):
return "<a href='%s'>Go to %s</a>" % (self.name, self.name)
return "<a href='%s'>Go to %s</a>" % (self.name, self.name)
+
+ def getTitleText(self):
+ return "<b>%s</b>" % self.title
+
+ def setStatus(self, msg, timeout):
+ self.mainwin.setStatus(msg, timeout)