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-25 20:41:29 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-25 20:41:29 (GMT)
commitf1536aca0823e0a37a62926ec1262ab3e59a9d90 (patch)
tree5eac80f1ed91c3f69b1498ef2dc1680ddb597342 /constants.py
parentc223f72fc567756fa317450a3701657bcd1050c0 (diff)
toolbar palettes mostly complete
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/constants.py b/constants.py
index d71a441..1f6e114 100644
--- a/constants.py
+++ b/constants.py
@@ -36,9 +36,12 @@ PEN = 1
NUMBER = 2
FLOW = 3
BLOCKS = 4
-MISC = 5
+EXTRAS = 5
PORTFOLIO = 6
+PALETTE_NAMES = ['turtle', 'pen', 'number', 'flow', 'blocks', 'extras',
+ 'portfolio']
+
PALETTES = [['clean', 'forward', 'back', 'left', 'right', 'arc', 'set xy',
'show', 'set scale', 'set heading', 'scale', 'xcor', 'ycor', 'heading'],
['pen up','pen down', 'set pen size', 'set text size',
@@ -46,13 +49,13 @@ PALETTES = [['clean', 'forward', 'back', 'left', 'right', 'arc', 'set xy',
'shade'],
['number', 'plus', 'minus', 'multiply',
'divide', 'mod', 'square root', 'random', 'greater than', 'less than',
- 'equal to', 'and', 'or', 'not', 'print'],
+ 'equal to', 'and', 'or', 'not'],
['wait', 'forever', 'repeat', 'if then', 'stop action', 'hspace',
'vspace'],
['start', 'def action 1', 'action 1', 'def action 2',
'action 2', 'def action', 'action', 'store in box 1', 'box 1',
'store in box 2', 'box 2', 'store in', 'box', 'string'],
- ['left pos', 'top pos', 'right pos', 'bottom pos', 'width',
+ ['print', 'left pos', 'top pos', 'right pos', 'bottom pos', 'width',
'height'],
['hide blocks']]
@@ -64,6 +67,9 @@ COLORS = [["#00FF00","#00A000"], ["#00FFFF","#00A0A0"], ["#FF00FF","#A000A0"],
["#FFC000","#A08000"], ["#FFFF00","#A0A000"], ["#FF0000","#A0000"],
["#0000FF","#0000FF"]]
+
+PALETTE_HEIGHT = 175
+ICON_SIZE = 55
SELECTED_COLOR = "#0000FF"
SELECTED_STROKE_WIDTH = 1.5
STANDARD_STROKE_WIDTH = 1.0
@@ -118,7 +124,8 @@ BLOCK_NAMES = {'clean':[_('clean')], 'forward':[_('forward')],
'color':[_('color')],
'plus':['+'], 'minus':['–'], 'multiply':['×'], 'divide':['/'],
'mod':[_('mod')],
- 'random':[_('random')], 'square root':['√'], 'less than':['<'],
+ 'random':[_('random'),_('min'),_('max')], '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')],