Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-03 19:16:53 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-03 19:16:53 (GMT)
commit96b6b6a92bb1021dd4a818a76e1c59af6d682b74 (patch)
tree3b6b2f5ece8f2b8b384b2d380caf4eeafc8d223b /constants.py
parent195b840e6feca6089768941a694ec9832f509006 (diff)
saving/restoring multiple turtles; fixed turtle selection bug
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/constants.py b/constants.py
index e9343dd..f5ab419 100644
--- a/constants.py
+++ b/constants.py
@@ -51,7 +51,7 @@ PALETTES = [['forward', 'back', 'clean', 'left', 'right', 'show',
'storein', 'start'],
['kbinput', 'push', 'printheap', 'keyboard', 'pop', 'clearheap',
'myfunc', 'nop', 'leftpos', 'toppos', 'width', 'rightpos',
- 'bottompos', 'height', 'turtle', 'print'],
+ 'bottompos', 'height', 'addturtle', 'print'],
['journal', 'audio', 'description', 'templatelist', 'template1x1a',
'template1x1', 'template1x2', 'template2x1', 'template2x2',
'hideblocks', 'showblocks'],
@@ -102,7 +102,7 @@ BASIC_STYLE = ['clean', 'penup', 'pendown', 'stack1', 'stack2', 'vspace',
BASIC_STYLE_1ARG = ['forward', 'back', 'left', 'right', 'seth', 'show',
'setscale', 'setpensize', 'setcolor', 'setshade', 'print',
'settextsize', 'settextcolor', 'print', 'wait', 'storeinbox1',
- 'storeinbox2', 'wait', 'stack', 'push', 'nop', 'turtle']
+ 'storeinbox2', 'wait', 'stack', 'push', 'nop', 'addturtle']
BASIC_STYLE_2ARG = ['arc', 'setxy', 'fillscreen', 'storein']
BOX_STYLE = ['number', 'xcor', 'ycor', 'heading', 'pensize', 'color', 'shade',
'textcolor', 'textsize', 'box1', 'box2', 'string', 'leftpos', 'scale',
@@ -164,6 +164,7 @@ CONTENT_BLOCKS = ['number', 'string', 'description', 'audio', 'journal']
# block name dictionary used for labels
#
BLOCK_NAMES = {
+ 'addturtle':[_('turtle')],
'and2':[_('and')],
'arc':[_('arc'),_('angle'),_('radius')],
'audio':[' '],
@@ -266,6 +267,7 @@ BLOCK_NAMES = {
#
PRIMITIVES = {
+ 'addturtle':'turtle',
'and2':'and',
'arc':'arc',
'back':'back',
@@ -351,7 +353,6 @@ PRIMITIVES = {
'template2x2':'t2x2',
'textsize':'textsize',
'toppos':'tpos',
- 'turtle':'turtle',
'vspace':'nop',
'wait':'wait',
'width':'hres',
@@ -364,6 +365,7 @@ PRIMITIVES = {
#
DEFAULTS = {
+ 'addturtle':[1],
'arc':[90,100],
'audio':[None],
'back':[100],
@@ -402,7 +404,6 @@ DEFAULTS = {
'template2x1':[_('Title'), 'None', 'None'],
'template2x2':[_('Title'), 'None', 'None', 'None', 'None'],
'templatelist':[_('Title'), '∙ '],
- 'turtle':[1],
'wait':[1]}
#
@@ -490,6 +491,7 @@ SPECIAL_NAMES = {
# Help messages
#
HELP_STRINGS = {
+ 'addturtle':_("choose which turtle to command"),
'and2':_("logical AND operator"),
'arc':_("move turtle along an arc"),
'audio':_("Sugar Journal audio object"),