diff options
-rw-r--r-- | game.py | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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): |