diff browser_side/card_game.py @ 238:dec76d4536ad

browser_side: set CSS margin: auto for all button panels
author souliane <souliane@mailoo.org>
date Fri, 11 Oct 2013 15:40:29 +0200
parents 9763dec220ed
children 63e9b680d3e7
line wrap: on
line diff
--- a/browser_side/card_game.py	Thu Oct 10 18:29:07 2013 +0200
+++ b/browser_side/card_game.py	Fri Oct 11 15:40:29 2013 +0200
@@ -73,12 +73,13 @@
         self.contrats_list.setSelectedIndex(0)
         content.add(self.contrats_list)
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         self.choose_button = Button("Choose", self.onChoose)
         button_panel.add(self.choose_button)
         content.add(button_panel)
         self.setHTML("Please select your contrat")
         self.setWidget(content)	
-    
+
     def onChoose(self, button):
         self.hide()
         self._parent.contratSelected(self.contrats_list.getSelectedItemText()[0])