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-01-23 22:13:27 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-23 22:13:27 (GMT)
commit154ff98581f12f4ec5bce7a37a15afe0d86f0a36 (patch)
tree8c978be1ded04389790e4d24868abcdca5a4c023 /constants.py
parent853c5a909ad06a2040db8b8facf81fa15b4d71da (diff)
multiple label support
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py56
1 files changed, 32 insertions, 24 deletions
diff --git a/constants.py b/constants.py
index 2618839..cc3c56a 100644
--- a/constants.py
+++ b/constants.py
@@ -91,30 +91,38 @@ CONTENT_BLOCKS = ['number', 'string', 'media', 'audio', 'journal']
# block name dictionary
#
-BLOCK_NAMES = {'clean':_('clean'), 'forward':_('forward'), 'back':_('back'),
- 'left':_('left'), 'right':_('right'), 'set heading':_('set heading'),
- 'show':_('show'), 'set scale':_('set scale'), 'xcor':_('xcor'),
- 'ycor':_('ycor'), 'heading':_('heading'), 'pen up':_('pen up'),
- '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':'<',
- 'greater than':">", 'equal to':'=', 'and':_('and'), 'or':_('or'),
- 'not':_('not'), 'print':_('print'), 'wait':_('wait'),
- 'forever':_('forever'), 'repeat':_('repeat'), 'if then':_('if then'),
- 'stop action':_('stop action'), 'hspace':_(' '), 'vspace':_(' '),
- 'start':_('start'), 'def action 1':_('action 1'), 'action 1':_('action 1'),
- 'def action 2':_('action 2'), 'action 2':_('action 2'),
- 'def action':_('action'), 'action':_('action'), 'number':'100',
- 'store in box 1':_('store in box 1'), 'box 1':_('box 1'),
- 'store in box 2':_('store in box 2'), 'box 2':_('box 2'),
- 'store in':_('store in'), 'box':_('box'), 'string':_('string'),
- 'left pos':_('left'), 'top pos':_('top'), 'right pos':_('right'),
- 'bottom pos':_('bottom'), 'width':_('width'), 'height':_('height'),
- 'hide blocks':_('hide blocks'), 'set xy':_('set xy'), 'scale':_('scale')}
+BLOCK_NAMES = {'clean':[_('clean')], 'forward':[_('forward')],
+ 'back':[_('back')],
+ 'left':[_('left')], 'right':[_('right')], 'set heading':[_('set heading')],
+ 'show':[_('show')], 'set scale':[_('set scale')], 'xcor':[_('xcor')],
+ 'ycor':[_('ycor')], 'heading':[_('heading')], 'pen up':[_('pen up')],
+ 'pen down':[_('pen down')], 'set pen size':[_('set pen size')],
+ 'arc':[_('arc'),_('angle'),_('radius')],
+ 'set text size':[_('set text size')], 'set color':[_('set color')],
+ 'set shade':[_('set shade')],
+ 'fill screen':[_('fill screen'),_('color'),_('shade')],
+ 'shade':[_('shade')],
+ 'pen size':[_('pen size')], 'text size':[_('text size')],
+ 'color':[_('color')],
+ 'plus':['+'], 'minus':['–'], 'multiply':['×'], 'divide':['/'],
+ 'mod':[_('mod')],
+ 'random':[_('random')], 'square root':['√'], 'less than':['<'],
+ 'greater than':[">"], 'equal to':['='], 'and':[_('and')], 'or':[_('or')],
+ 'not':[_('not')], 'print':[_('print')], 'wait':[_('wait')],
+ 'forever':[_('forever')], 'repeat':[_('repeat')], 'if then':[_('if then')],
+ 'stop action':[_('stop action')], 'hspace':[' '], 'vspace':[' '],
+ 'start':[_('start')], 'def action 1':[_('action 1')],
+ 'action 1':[_('action 1')],
+ 'def action 2':[_('action 2')], 'action 2':[_('action 2')],
+ 'def action':[_('action')], 'action':[_('action')], 'number':['100'],
+ 'store in box 1':[_('store in box 1')], 'box 1':[_('box 1')],
+ 'store in box 2':[_('store in box 2')], 'box 2':[_('box 2')],
+ 'store in':[_('store in')], 'box':[_('box')], 'string':[_('string')],
+ 'left pos':[_('left')], 'top pos':[_('top')], 'right pos':[_('right')],
+ 'bottom pos':[_('bottom')], 'width':[_('width')], 'height':[_('height')],
+ 'hide blocks':[_('hide blocks')],
+ 'set xy':[_('set xy'),_('x'),_('y')],
+ 'scale':[_('scale')]}
#
# Logo primitives