add addMainScreenButton to allow other screens to attach buttons to mainscreen
[sface.git] / sface / screens / sfascreen.py
index 1563468..9ee0aa0 100644 (file)
@@ -37,11 +37,13 @@ class SfaScreen(QWidget):
     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