diff frontends/src/quick_frontend/quick_app.py @ 2097:4bc408b549cd

quick_frontend(QuickApp): added onBridgeConnected method
author Goffi <goffi@goffi.org>
date Sun, 18 Dec 2016 16:28:46 +0100
parents f413bfc24458
children 071423b3a413
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Sun Dec 18 16:28:44 2016 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Sun Dec 18 16:28:46 2016 +0100
@@ -255,6 +255,9 @@
     def connectBridge(self):
         self.bridge.bridgeConnect(callback=self._bridgeCb, errback=self._bridgeEb)
 
+    def onBridgeConnected(self):
+        pass
+
     def _bridgeCb(self):
         self.registerSignal("connected")
         self.registerSignal("disconnected")
@@ -281,6 +284,7 @@
         quick_games.Tarot.registerSignals(self)
         quick_games.Quiz.registerSignals(self)
         quick_games.Radiocol.registerSignals(self)
+        self.onBridgeConnected()
 
     def _bridgeEb(self, failure):
         if isinstance(failure, exceptions.BridgeExceptionNoService):