add addMainScreenButton to allow other screens to attach buttons to mainscreen
[sface.git] / sface / screens / sfascreen.py
index e3c584a..9ee0aa0 100644 (file)
@@ -37,12 +37,22 @@ 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:
-            getattr(i, action)()
+            method = getattr(i, action, None)
+            if method:
+                results.append(method(*args))
+        return results
 
     def rspecUpdated(self):
         pass
 
     def configurationChanged(self):
         pass
+
+    def canClose(self):
+        return True
+
+    def mainWindowClose(self):
+        pass