Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2013-07-18 00:49:26 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2013-07-18 00:49:26 (GMT)
commit92304e0d7ab970a04bbaadba749d423a3114ea68 (patch)
tree7e8f5f391402a65874d685b754e85da50ba5c9d7
parent2eee2f293a3bab7388c390ec8507afa2dd3958f9 (diff)
Organize buttons
Signed-off-by: Cristhofer Travieso <cristhofert97@gmail.com>
-rw-r--r--game.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/game.py b/game.py
index 70df87e..22c3136 100644
--- a/game.py
+++ b/game.py
@@ -54,20 +54,27 @@ class Fixed(Gtk.Fixed):
deck = Gtk.Image()
self.put(deck, 0, 50)
- grid = Gtk.Grid()
- self.put(grid, WIDTH*0.90, HEIGHT*0.90)
+ #button
+ box = Gtk.VBox()
+ self.put(box, WIDTH-100, HEIGHT-100)
+ truco_box = Gtk.HBox()
+ box.add(truco_box)
+
truco_btn = Gtk.Button('Truco')
- grid.add(truco_btn)
+ truco_box.add(truco_btn)
retruco_btn = Gtk.Button('Retruco')
- grid.add(retruco_btn)
+ truco_box.add(retruco_btn)
vale4_btn = Gtk.Button('Vale 4')
- grid.add(vale4_btn)
+ truco_box.add(vale4_btn)
+ other_box = Gtk.HBox()
+ box.add(other_box)
+
flor_btn = Gtk.Button('Flor')
- grid.add(flor_btn)
+ other_box.add(flor_btn)
def play_card(self, widget):
self.move(widget, WIDTH/2, HEIGHT/2+100)