comparison libervia.tac @ 38:7bea2ae0c4fb

Tarot game: center_panel layout + chien can now be showed + fixed click event inheritance + card selection first draft
author Goffi <goffi@goffi.org>
date Thu, 19 May 2011 02:00:59 +0200
parents b306aa090438
children 305e81c7a32c
comparison
equal deleted inserted replaced
37:b306aa090438 38:7bea2ae0c4fb
360 import sys 360 import sys
361 sys.exit(1) 361 sys.exit(1)
362 self.bridge.register("connected", self.signal_handler.connected) 362 self.bridge.register("connected", self.signal_handler.connected)
363 self.bridge.register("connectionError", self.signal_handler.connectionError) 363 self.bridge.register("connectionError", self.signal_handler.connectionError)
364 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew', 364 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined', 'roomUserJoined', 'roomUserLeft', 'tarotGameStarted', 'tarotGameNew',
365 'tarotGameChooseContrat']: 365 'tarotGameChooseContrat', 'tarotGameShowCards']:
366 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) 366 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
367 root.putChild('json_signal_api', self.signal_handler) 367 root.putChild('json_signal_api', self.signal_handler)
368 root.putChild('json_api', MethodHandler(self)) 368 root.putChild('json_api', MethodHandler(self))
369 root.putChild('register_api', _register) 369 root.putChild('register_api', _register)
370 root.putChild('blog', MicroBlog(self)) 370 root.putChild('blog', MicroBlog(self))