3 from PyQt4.QtCore import *
4 from PyQt4.QtGui import *
6 class SfaScreen(QWidget):
9 def __init__(self, parent):
10 SfaScreen.instances.append(self)
11 QWidget.__init__(self, parent)
13 self.name = self.title = self.widget = None
16 SfaScreen.instances.remove(self)
18 def init(self, widget, name, title):
20 sys.stderr.write("Screen is already initialized\n")
27 layout = QVBoxLayout(self)
28 layout.addWidget(self.widget)
29 self.setLayout(layout)
31 def getLinkText(self):
32 return "<a href='%s'>%s</a>" % (self.name, self.name)
34 def getTitleText(self):
35 return "<b>%s</b>" % self.title
37 def setStatus(self, msg, timeout):
38 self.mainwin.setStatus(msg, timeout)
40 def signalAll(self, action):
41 for i in SfaScreen.instances:
44 def rspecUpdated(self):
47 def configurationChanged(self):
53 def mainWindowClose(self):