From d4933240f03e528ec99a162ea7e71c5c239de9c3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 25 Feb 2010 14:48:19 +0000 Subject: adding savesvg strings --- (limited to 'taconstants.py') 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.)"), -- cgit v0.9.1