From 7c55004f97f2032911d47384e85c759372911cff Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 02 Mar 2011 22:52:53 +0000 Subject: removed 'see' from value blocks list --- diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index fd26209..14ea499 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -53,7 +53,7 @@ Adding a new palette is simply a matter of: You will have to create icons for the palette-selector buttons. These are kept in the icons subdirectory. You need two icons: -mypaletteoff.svg and yourpaletteon.svg, where mypalette is the same +mypaletteoff.svg and mypaletteon.svg, where 'mypalette' is the same string as the entry you used in instantiating the Palette class. Note that the icons should be the same size (55x55) as the others. (This is the default icon size for Sugar toolbars.) @@ -852,8 +852,6 @@ operators from Numbers palette')) self.tw.lc.update_label_value( 'ycor', self.tw.canvas.ycor / self.tw.coord_scale) self.tw.lc.update_label_value('heading', self.tw.canvas.heading) - if len(self.lc.tw.value_blocks['see']) > 0: - self.lc.tw.see() def _prim_box(self, x): """ Retrieve value from named box """ @@ -902,8 +900,6 @@ operators from Numbers palette')) self.tw.canvas.xcor / self.tw.coord_scale) self.tw.lc.update_label_value('ycor', self.tw.canvas.ycor / self.tw.coord_scale) - if len(self.tw.lc.value_blocks['see']) > 0: - self.tw.lc.see() def _prim_repeat(self, num, blklist): """ Repeat list num times. """ diff --git a/plugins/turtle_blocks_plugin.py b/plugins/turtle_blocks_plugin.py index 64a7ebc..8a52a76 100644 --- a/plugins/turtle_blocks_plugin.py +++ b/plugins/turtle_blocks_plugin.py @@ -141,8 +141,8 @@ operators from Numbers palette')) palette='media', style='box-style-media', label=' ', + default='None', special_name=_('journal'), - default=None, help_string=_('Sugar Journal media object')) make_prim('audio', @@ -150,7 +150,7 @@ operators from Numbers palette')) style='box-style-media', label=' ', special_name=_('audio'), - default=None, + default='None', help_string=_('Sugar Journal audio object')) make_prim('video', @@ -158,7 +158,7 @@ operators from Numbers palette')) style='box-style-media', label=' ', special_name=_('video'), - default=None, + default='None', help_string=_('Sugar Journal video object')) make_prim('description', @@ -166,7 +166,7 @@ operators from Numbers palette')) style='box-style-media', label=' ', special_name=_('description'), - default=None, + default='None', help_string=_('Sugar Journal description field')) make_prim('string', @@ -299,7 +299,6 @@ stack')) style='box-style', label=_('turtle sees'), prim_name='see', - value_block=True, help_string=_('returns the color that the turtle "sees"')) self.tw.lc._def_prim('see', 0, lambda self: PLUGIN_DICTIONARY['see']()) -- cgit v0.9.1