diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-11-08 00:12:29 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-11-08 00:12:29 (GMT) |
commit | 4739976d0a96eb21b8f606c69ecc09ca7a1557de (patch) | |
tree | 57170dde71aee01aac39059ebd300a3e5aa9e7e3 /TurtleArt/talogo.py | |
parent | b81f399d5c57465e95cca0fac241975bc75df303 (diff) | |
parent | a7a87c7fa872418f8db1af7badd4c91e0481c2af (diff) |
Merge commit 'refs/merge-requests/3' of git://git.sugarlabs.org/turtleart/mainline into integration
Conflicts:
NEWS
activity/activity.info
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r-- | TurtleArt/talogo.py | 10 |
1 files changed, 8 insertions, 2 deletions
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) """ |