bottomlayout.addWidget(renew, 0, Qt.AlignLeft)
bottomlayout.addStretch()
bottomlayout.addWidget(submit, 0, Qt.AlignRight)
+ self.bottomlayout = bottomlayout
layout = QVBoxLayout()
layout.addLayout(toplayout)
# rspec.
QTimer.singleShot(2500, self.sliceWidget.refresh)
+ def addMainScreenButton(self, caption, action):
+ # allows another screen to add a button to mainscreen
+ button = QPushButton(caption, self)
+ self.sliceWidget.bottomlayout.insertWidget(2, button)
+ self.sliceWidget.connect(button, SIGNAL('clicked()'), action)
+ return button
+
+
def setStatus(self, msg, timeout):
self.mainwin.setStatus(msg, timeout)
- def signalAll(self, action):
+ def signalAll(self, action, *args):
+ results=[]
for i in SfaScreen.instances:
method = getattr(i, action, None)
if method:
- method()
+ results.append(method(*args))
+ return results
def rspecUpdated(self):
pass