diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-03-14 01:54:12 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-03-14 01:54:12 (GMT) |
commit | bde0306a2345bddb991f8107c809136b6b0f5868 (patch) | |
tree | df9b53c63b2e9e9b83b21bc2c35cab91ac8476c0 /TurtleArt/tabasics.py | |
parent | e728322cd798fa7c2a2bc121695dbab2075fa175 (diff) |
add a label to the remote turtles (experimental); fix bug that prevented colors being set for remote turtles on resume
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 39fb6d3..9e4a171 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -66,9 +66,8 @@ from gettext import gettext as _ from tapalette import make_palette from talogo import primitive_dictionary, logoerror -from taconstants import CONSTANTS, BLACK, WHITE from tautils import convert, chr_to_ord, round_int, strtype - +from taconstants import BLACK, WHITE, CONSTANTS def _num_type(x): """ Is x a number type? """ @@ -231,6 +230,11 @@ turtle (can be used in place of a number block)'), self.tw.lc.def_prim( 'heading', 0, lambda self: self.tw.canvas.heading) + palette.add_block('turtle-label', + hidden=True, + style='blank-style', + label=['turtle']) + # Deprecated palette.add_block('setxy', hidden=True, |