diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-07 12:21:28 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-07 12:21:28 (GMT) |
commit | 27ba932b53f2ea3f11d2d43c3eb77b708da4bdb7 (patch) | |
tree | fac6bcb72942347ce36f77ed5b1df293f03bed62 /plugins | |
parent | 869685b9747d48a128fd25ebf93b78324d3eb58a (diff) |
resync with v191
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 8f5a94d..b1b003f 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -1403,8 +1403,10 @@ Journal objects')) def _prim_showlist(self, sarray): """ Display list of media objects """ - x = self.tw.turtles.get_active_turtle.get_xy()[0] / self.tw.coord_scale - y = self.tw.turtles.get_active_turtle.get_xy()[1] / self.tw.coord_scale + x = (self.tw.turtles.get_active_turtle().get_xy()[0] / + self.tw.coord_scale) + y = (self.tw.turtles.get_active_turtle().get_xy()[1] / + self.tw.coord_scale) for s in sarray: self.tw.turtles.get_active_turtle().set_xy(x, y, pendown=False) self._prim_show(s) @@ -1550,7 +1552,7 @@ Journal objects')) self.tw.show_toolbar_palette(int(arg)) else: if type(arg) == unicode: - arg = arg.encode('ascii', 'replace') + arg = arg.encode('utf-8') if arg in palette_names: self.tw.show_toolbar_palette(palette_name_to_index(arg)) else: |