From 0b7b4ac756437c3f5b2b5c624b97c6f79c021f0d Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 02 Nov 2011 13:44:33 +0000 Subject: giving up on image rotation for the moment --- (limited to 'TurtleArt/talogo.py') diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py index 12be92f..25ffceb 100644 --- a/TurtleArt/talogo.py +++ b/TurtleArt/talogo.py @@ -585,14 +585,20 @@ class LogoCode: debug_output("Couldn't open filepath %s" % (self.filepath), self.tw.running_sugar) if pixbuf is not None: + x = self.tw.canvas.xcor + y = self.tw.canvas.ycor + w *= self.tw.coord_scale + h *= self.tw.coord_scale if center: self.tw.canvas.draw_pixbuf(pixbuf, 0, 0, self.x2tx() - int(w / 2), self.y2ty() - int(h / 2), w, h, self.filepath) else: - self.tw.canvas.draw_pixbuf(pixbuf, 0, 0, self.x2tx(), - self.y2ty(), w, h, self.filepath) + self.tw.canvas.draw_pixbuf(pixbuf, 0, 0, + self.x2tx(), + self.y2ty(), + w, h, self.filepath) def insert_desc(self, mimetype=None, description=None): """ Description text only (at current x, y) """ -- cgit v0.9.1