diff 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
line wrap: on
line diff
--- a/browser_side/panels.py	Wed May 18 01:45:28 2011 +0200
+++ b/browser_side/panels.py	Thu May 19 02:00:59 2011 +0200
@@ -495,6 +495,16 @@
         self.setStyleName('chatPanel')
         self.addClickListener(self)
 
+    def doDetachChildren(self):
+        #We need to force the use of a panel subclass method here,
+        #for the same reason as doAttachChildren
+        ScrollPanelWrapper.doDetachChildren(self)
+
+    def doAttachChildren(self):
+        #We need to force the use of a panel subclass method here, else
+        #the event will not propagate to children
+        ScrollPanelWrapper.doAttachChildren(self)
+
     def onClick(self, sender, event):
         self.host.select(self)