Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/card.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-11-03 15:02:41 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-11-03 15:02:41 (GMT)
commit43add4f1be6d04cb7afb63012bc169e0bd7d385a (patch)
treef1e216638edeecd6e7fafe752273b5fbdf488674 /card.py
parent63d383e85829d80478a53563deaeeff6a86af80d (diff)
added reset functionality
Diffstat (limited to 'card.py')
-rw-r--r--card.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/card.py b/card.py
index 0f43b02..5991084 100644
--- a/card.py
+++ b/card.py
@@ -50,13 +50,14 @@ class Card:
draw(self.spr)
def load_image(self, file, i, wh):
- # print "loading " + os.path.join(file + str(i) + '.svg') + \
- # " scale: " + str(wh)
return gtk.gdk.pixbuf_new_from_file_at_size(os.path.join(file + \
str(i) + "x" + \
'.svg'), \
int(wh), int(wh))
+ def reload_image(self, tw, i):
+ self.spr.image = self.load_image(tw.path,i,tw.card_dim*tw.scale)
+
def set_orientation(self,r,rotate_spr=True):
while r != self.orientation:
self.rotate_ccw(rotate_spr)