Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/constants.py b/constants.py
index 803d665..6240242 100644
--- a/constants.py
+++ b/constants.py
@@ -36,7 +36,7 @@ BASIC_STYLE_HEAD_1ARG = ['def action']
BASIC_STYLE_TAIL = ['stop action']
BASIC_STYLE = ['clean', 'pen up', 'pen down', 'action 1', 'action 2', 'vspace',
'hide blocks']
-BASIC_STYLE_1ARG = ['forward', 'back', 'left', 'right', 'seth', 'show',
+BASIC_STYLE_1ARG = ['forward', 'back', 'left', 'right', 'set heading', 'show',
'set scale', 'set pen size', 'set color', 'set shade', 'print',
'set text size', 'set text color', 'print', 'wait', 'store in box 1',
'store in box 2', 'wait', 'action']
@@ -44,25 +44,24 @@ BASIC_STYLE_2ARG = ['arc', 'set xy', 'fill screen', 'store in']
BOX_STYLE = ['number', 'xcor', 'ycor', 'heading', 'pen size', 'color', 'shade',
'text color', 'text size', 'box 1', 'box 2', 'string', 'left pos', 'scale',
'top pos', 'right pos', 'bottom pos', 'width', 'height']
-BOX_STYLE_1ARG = ['box']
NUMBER_STYLE = ['plus', 'multiply', 'random']
NUMBER_STYLE_PORCH = ['minus', 'divide', 'mod']
-NUMBER_STYLE_1ARG = ['square root']
+NUMBER_STYLE_1ARG = ['square root', 'box']
COMPARE_STYLE = ['greater than', 'less than', 'equal to']
BOOLEAN_STYLE = ['and', 'or']
NOT_STYLE = ['not']
FLOW_STYLE = ['forever', 'hspace']
FLOW_STYLE_1ARG = ['repeat']
FLOW_STYLE_BOOLEAN = ['if then']
-TURTLE_PALETTE = ['clean', 'forward', 'back', 'left', 'right', 'seth', 'show',
- 'set scale', 'arc', 'scale', 'xcor', 'ycor', 'heading']
+TURTLE_PALETTE = ['clean', 'forward', 'back', 'left', 'right', 'set heading',
+ 'show', 'set scale', 'arc', 'scale', 'xcor', 'ycor', 'heading']
PEN_PALETTE = ['pen up','pen down', 'set pen size', 'set text size',
'set color', 'set shade', 'fill screen', 'pen size', 'text size', 'color',
- 'shade'] # shade?
+ 'shade']
NUMBER_PALETTE = ['number', 'plus', 'minus', 'multiply',
'divide', 'mod', 'square root', 'random', 'greater than', 'less than',
'equal to', 'and', 'or', 'not', 'print']
-FLOW_PALETTE = ['wait', 'forever', 'repeat', 'if then', 'stop action', 'hspace'
+FLOW_PALETTE = ['wait', 'forever', 'repeat', 'if then', 'stop action', 'hspace',
'vspace']
BLOCKS_PALETTE = ['start', 'def action 1', 'action 1', 'def action 2',
'action 2', 'def action', 'action', 'store in box 1', 'box 1',
@@ -98,6 +97,7 @@ BLOCK_NAMES = {'clean':_('clean'), 'forward':_('forward'), 'back':_('back'),
'pen down':_('pen down'), 'set pen size':_('set pen size'), 'arc':_('arc'),
'set text size':_('set text size'), 'set color':_('set color'),
'set shade':_('set shade'), 'fill screen':_('fill screen'),
+ 'shade':_('shade'),
'pen size':_('pen size'), 'text size':_('text size'), 'color':_('color'),
'plus':'+', 'minus':'–', 'multiply':'×', 'divide':'/', 'mod':_('mod'),
'random':_('random'), 'square root':'√', 'less than':'<',
@@ -125,7 +125,7 @@ PRIMITIVES = {'clean':'clean', 'forward':'forward', 'back':'back', 'arc':'arc',
'ycor':'ycor', 'heading':'heading', 'pen up':'penup',
'pen down':'pendown', 'set pen size':'setpensize',
'set text size':'settextsize', 'set color':'setcolor',
- 'set shade':'setshade', 'fill screen':'fillscreen',
+ 'set shade':'setshade', 'fill screen':'fillscreen', 'shade':'shade',
'pen size':'pensize', 'text size':'textsize', 'color':'color',
'plus':'plus', 'minus':'minus', 'multiply':'product',
'divide':'division', 'mod':'mod',
@@ -149,12 +149,12 @@ PRIMITIVES = {'clean':'clean', 'forward':'forward', 'back':'back', 'arc':'arc',
#
DEFAULTS = {'forward':[100], 'back':[100], 'left':[90], 'right':[90],
- 'arc':[90,100], 'seth':[0], 'set scale':[33], 'show':[_('text')],
+ 'arc':[90,100], 'set heading':[0], 'set scale':[33], 'show':[_('text')],
'set pen size':[5], 'set text size':[32], 'set color':[0],
'set shade':[50], 'fill screen':[60,80], 'number':[100],
'random':[0,100], 'wait':[1], 'repeat':[4], 'set xy':[0,0],
- 'store in':[_('box'),100], 'box':[_('my box')], 'def action':[_('action')],
- 'action':[_('action')]}
+ 'store in':[_('my box'),100], 'box':[_('my box')],
+ 'def action':[_('action')], 'action':[_('action')]}
#
# 'dead key' Unicode dictionaries