Mercurial > libervia-web
comparison browser_side/panels.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 |
comparison
equal
deleted
inserted
replaced
37:b306aa090438 | 38:7bea2ae0c4fb |
---|---|
493 self.vpanel.add(self.body) | 493 self.vpanel.add(self.body) |
494 self.setWidget(self.vpanel) | 494 self.setWidget(self.vpanel) |
495 self.setStyleName('chatPanel') | 495 self.setStyleName('chatPanel') |
496 self.addClickListener(self) | 496 self.addClickListener(self) |
497 | 497 |
498 def doDetachChildren(self): | |
499 #We need to force the use of a panel subclass method here, | |
500 #for the same reason as doAttachChildren | |
501 ScrollPanelWrapper.doDetachChildren(self) | |
502 | |
503 def doAttachChildren(self): | |
504 #We need to force the use of a panel subclass method here, else | |
505 #the event will not propagate to children | |
506 ScrollPanelWrapper.doAttachChildren(self) | |
507 | |
498 def onClick(self, sender, event): | 508 def onClick(self, sender, event): |
499 self.host.select(self) | 509 self.host.select(self) |
500 | 510 |
501 def setUserNick(self, nick): | 511 def setUserNick(self, nick): |
502 """Set the nick of the user, usefull for e.g. change the color of the user""" | 512 """Set the nick of the user, usefull for e.g. change the color of the user""" |