Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taconstants.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-25 14:48:19 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-25 14:48:19 (GMT)
commitd4933240f03e528ec99a162ea7e71c5c239de9c3 (patch)
treeaba34de85f668c4d2671319d1da66c99f38ace4b /taconstants.py
parent17f4515cda0d53c489d04221c07dececb1cd5b18 (diff)
adding savesvg strings
Diffstat (limited to 'taconstants.py')
-rw-r--r--taconstants.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/taconstants.py b/taconstants.py
index 38ccd77..22264b7 100644
--- a/taconstants.py
+++ b/taconstants.py
@@ -172,7 +172,8 @@ BASIC_STYLE_EXTENDED = ['picturelist', 'picture1x1', 'picture2x2',
BASIC_STYLE_1ARG = ['forward', 'back', 'left', 'right', 'seth', 'show', 'image',
'setscale', 'setpensize', 'setcolor', 'setshade', 'print', 'showaligned',
'settextsize', 'settextcolor', 'print', 'wait', 'storeinbox1', 'savepix',
- 'storeinbox2', 'wait', 'stack', 'push', 'nop', 'addturtle', 'comment']
+ 'storeinbox2', 'wait', 'stack', 'push', 'nop', 'addturtle', 'comment',
+ 'savesvg']
BASIC_STYLE_2ARG = ['arc', 'setxy', 'fillscreen', 'storein', 'write']
BOX_STYLE = ['number', 'xcor', 'ycor', 'heading', 'pensize', 'color', 'shade',
'textcolor', 'textsize', 'box1', 'box2', 'string', 'leftpos', 'scale',
@@ -319,11 +320,12 @@ BLOCK_NAMES = {
'rightpos':[_('right')],
'rightx':[_('picture right')],
'savepix':[_('save picture')],
- 'scale':[_('scale')],
+ 'savesvg':[_('save SVG')],
'sandwichbottom':[' '],
'sandwichcollapsed':[_('click to open')],
'sandwichtop':[_('top of stack')],
'sandwichtop2':[_('top of stack')],
+ 'scale':[_('scale')],
'setcolor':[_('set color')],
'seth':[_('set heading')],
'setpensize':[_('set pen size')],
@@ -448,6 +450,7 @@ PRIMITIVES = {
'sandwichbottom':'nop',
'sandwichcollapsed':'nop',
'savepix':'savepix',
+ 'savesvg':'savesvg',
'scale':'scale',
'setcolor':'setcolor',
'seth':'seth',
@@ -524,6 +527,7 @@ DEFAULTS = {
'sandwichtop':[_('label')],
'sandwichtop2':[_('label')],
'savepix':[_('picture name')],
+ 'savesvg':[_('picture name')],
'setcolor':[0],
'seth':[0],
'setpensize':[5],
@@ -736,6 +740,7 @@ HELP_STRINGS = {
'sandwichtop':_("top of a collapsible stack"),
'sandwichtop2':_("top of a collapsed stack"),
'savepix':_("saves a picture to the Sugar Journal"),
+ 'savesvg':_("saves turtle graphics as an SVG file in the Sugar Journal"),
'scale':_("holds current scale value"),
'setcolor':_("sets color of the line drawn by the turtle"),
'seth':_("sets the heading of the turtle (0 is towards the top of the screen.)"),