Mercurial > libervia-web
diff libervia.py @ 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 |
line wrap: on
line diff
--- a/libervia.py Wed May 18 01:45:28 2011 +0200 +++ b/libervia.py Thu May 19 02:00:59 2011 +0200 @@ -109,6 +109,8 @@ def select(self, widget): """Define the selected widget""" if self.selected: + if self.selected == widget: + return self.selected.removeStyleName('selected_widget') self.selected = widget if widget: @@ -170,7 +172,8 @@ elif name == 'tarotGameStarted': self._tarotGameStartedCb(*args) elif name == 'tarotGameNew' or \ - name == 'tarotGameChooseContrat': + name == 'tarotGameChooseContrat' or \ + name == 'tarotGameShowCards': self._tarotGameGenericCb(name, args[0], args[1:]) def _getProfileJidCB(self, jid):