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-08-28 20:35:26 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2013-08-28 20:35:26 (GMT)
commitb2ba2768d323edfb04482376690434fc32d87c5a (patch)
tree40a6b6bc6a2de64ab592720ddcfa2d84468a2df5
parent235cb785e0b24e865e7d5997871b75d27b4a6872 (diff)
Add images to supplant the labels
Signed-off-by: Cristhofer Travieso <cristhofert97@gmail.com>
-rw-r--r--game.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/game.py b/game.py
index fba143e..dbb663a 100644
--- a/game.py
+++ b/game.py
@@ -82,23 +82,28 @@ class Box(Gtk.VBox):
self.my_box.pack_start(btn3, True, True, 0)
#deck
- deck = Gtk.Label('|Mazo| ')
+ deck = Gtk.Image()
+ deck.set_from_file('icons/cards/back.svg')
self.play_box.pack_start(deck, False, False, 0)
#sample
- sample = Gtk.Label(self.cards[6])
+ sample = Gtk.Image()
+ sample.set_from_file('icons/cards/' + self.cards[6] + '.svg')
self.play_box.pack_start(sample, False, False, 0)
#card_opponent 1
- card1 = Gtk.Label(self.cards[3])
+ card1 = Gtk.Image()
+ card1.set_from_file('icons/cards/' + self.cards[3] + '.svg')
self.opponent_box.pack_start(card1, True, True, 0)
#card_opponent 2
- card2 = Gtk.Label(self.cards[4])
+ card2 = Gtk.Image()
+ card2.set_from_file('icons/cards/' + self.cards[4] + '.svg')
self.opponent_box.pack_start(card2, True, True, 0)
#card_opponent 3
- card3 = Gtk.Label(self.cards[5])
+ card3 = Gtk.Image()
+ card3.set_from_file('icons/cards/' + self.cards[5] + '.svg')
self.opponent_box.pack_start(card3, True, True, 0)
def _click(self, widget):