diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-04-26 17:22:12 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-04-26 17:22:12 (GMT) |
commit | e9fddf1e00857ad985238410f631a3975de04995 (patch) | |
tree | cb5dcd5c43ecb7952a9985f6e1ca8e42ee2673fc /taconstants.py | |
parent | 6606449090a9e66269d636451cb4712c78a19d73 (diff) |
mini version to parallel Java version
Diffstat (limited to 'taconstants.py')
-rw-r--r-- | taconstants.py | 175 |
1 files changed, 12 insertions, 163 deletions
diff --git a/taconstants.py b/taconstants.py index cc520f4..eabce05 100644 --- a/taconstants.py +++ b/taconstants.py @@ -113,31 +113,21 @@ TOP_LAYER = 1000 # PALETTE_NAMES = ['turtle', 'pen', 'colors', 'numbers', 'flow', 'blocks', - 'extras', 'portfolio', 'trash'] + 'extras', 'trash'] PALETTES = [['clean', 'forward', 'back', 'show', 'left', 'right', 'seth', 'setxy', 'heading', 'xcor', 'ycor', 'setscale', - 'arc', 'scale', 'leftpos', 'toppos', 'rightpos', - 'bottompos'], + 'arc', 'scale'], ['penup','pendown', 'setpensize', 'fillscreen', 'pensize', - 'setcolor', 'setshade', 'color', 'shade'], - [ 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple'], + 'setcolor', 'setshade', 'startfill', 'color', 'shade', + 'stopfill' ], + ['red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple'], ['plus2', 'minus2', 'product2', - 'division2', 'identity2', 'remainder2', 'sqrt', 'random', - 'number', 'greater2', 'less2', 'equal2', 'not', 'and2', 'or2'], - ['wait', 'forever', 'repeat', 'if', 'ifelse', 'while', 'until', - 'hspace', 'vspace', 'stopstack'], - ['hat1', 'stack1', 'hat', 'hat2', 'stack2', 'stack', - 'storeinbox1', 'storeinbox2', 'string', 'box1', 'box2', 'box', - 'storein', 'start'], - ['kbinput', 'push', 'printheap', 'keyboard', 'pop', 'clearheap', - 'myfunc1arg', 'userdefined', 'addturtle', 'comment', 'print', - 'cartesian', 'width', 'height', 'polar', 'sandwichtop', - 'sandwichbottom'], - ['journal', 'audio', 'description', 'hideblocks', 'showblocks', - 'fullscreen', 'savepix', 'savesvg', 'picturelist', - 'picture1x1a', 'picture1x1', 'picture2x2', 'picture2x1', - 'picture1x2'], + 'division2', 'identity2', 'remainder2', 'random', + 'number', 'greater2', 'less2', 'equal2'], + ['forever', 'repeat', 'if', 'vspace', 'stopstack', 'wait'], + ['hat', 'stack', 'storein', 'box', 'string', 'start'], + ['print', 'journal', 'hideblocks'], ['empty', 'restoreall']] # @@ -146,7 +136,7 @@ PALETTES = [['clean', 'forward', 'back', 'show', 'left', 'right', COLORS = [["#00FF00","#00A000"], ["#00FFFF","#00A0A0"], ["#00FFFF","#00A0A0"], ["#FF00FF","#A000A0"], ["#FFC000","#A08000"], ["#FFFF00","#A0A000"], - ["#FF0000","#A00000"], ["#0000FF","#0000A0"], ["#FFFF00","#A0A000"]] + ["#FF0000","#A00000"], ["#FFFF00","#A0A000"]] BOX_COLORS = {'red':["#FF0000","#A00000"],'orange':["#FFD000","#AA8000"], 'yellow':["#FFFF00","#A0A000"],'green':["#00FF00","#008000"], @@ -689,148 +679,7 @@ SPECIAL_NAMES = { # # Help messages # -HELP_STRINGS = { - 'addturtle':_("chooses which turtle to command"), - 'and2':_("logical AND operator"), - 'arc':_("moves turtle along an arc"), - 'audio':_("Sugar Journal audio object"), - 'back':_("moves turtle backward"), - 'blocks':_("Palette of variable blocks"), - 'bottompos':_("ycor of bottom of screen"), - 'box1':_("Variable 1 (numeric value)"), - 'box2':_("Variable 2 (numeric value)"), - 'box':_("named variable (numeric value)"), - 'cartesian':_("displays Cartesian coordinates"), - 'clean':_("clears the screen and reset the turtle"), - 'clearheap':_("emptys FILO (first-in-last-out heap)"), - 'color':_("holds current pen color (can be used in place of a number block)"), - 'colors':_("Palette of pen colors"), - 'comment':_("places a comment in your code"), - 'debugoff':_("Debug"), - 'description':_("Sugar Journal description field"), - 'division2':_("divides top numeric input (numerator) by bottom numeric input (denominator)"), - 'empty':_("permanently deletes items in trash"), - 'eraseron':_("Clean"), - 'equal2':_("logical equal-to operator"), - 'extras':_("Palette of extra options"), - 'fillscreen':_("fills the background with (color, shade)"), - 'flow':_("Palette of flow operators"), - 'forever':_("loops forever"), - 'forward':_("moves turtle forward"), - 'fullscreen':_("hides the Sugar toolbars"), - 'greater2':_("logical greater-than operator"), - 'hat1':_("top of Action 1 stack"), - 'hat2':_("top of Action 2 stack"), - 'hat':_("top of nameable action stack"), - 'heading':_("holds current heading value of the turtle (can be used in place of a number block)"), - 'height':_("the canvas height"), - 'hideblocks':_("declutters canvas by hiding blocks"), - 'hideshowoff':_("Hide blocks"), - 'hspace':_("jogs stack right"), - 'identity2':_("identity operator used for extending blocks"), - 'ifelse':_("if-then-else operator that uses boolean operators from Numbers palette"), - 'if':_("if-then operator that uses boolean operators from Numbers palette"), - 'journal':_("Sugar Journal media object"), - 'kbinput':_("query for keyboard input (results stored in keyboard block)"), - 'keyboard':_("holds results of query-keyboard block"), - 'leftpos':_("xcor of left of screen"), - 'left':_("turns turtle counterclockwise (angle in degrees)"), - 'less2':_("logical less-than operator"), - 'minus2':_("subtracts bottom numeric input from top numeric input"), - 'myfunc':_("a programmable block: used to add advanced math equations, e.g., sin(x)"), - 'myfunc1arg':_("a programmable block: used to add advanced single-variable math equations, e.g., sin(x)"), - 'myfunc2arg':_("a programmable block: used to add advanced multi-variable math equations, e.g., sqrt(x*x+y*y)"), - 'myfunc3arg':_("a programmable block: used to add advanced multi-variable math equations, e.g., sin(x+y+z)"), - 'next':_('displays next palette'), - 'nop':_("runs code found in the tamyblock.py module found in the Journal"), - 'not':_("logical NOT operator"), - 'numbers':_("Palette of numeric operators"), - 'number':_("used as numeric input in mathematic operators"), - 'or':_("logical OR operator"), - 'orientation':_("changes the orientation of the palette of blocks"), - 'pendown':_("Turtle will draw when moved."), - 'pen':_("Palette of pen commands"), - 'pensize':_("holds current pen size (can be used in place of a number block)"), - 'penup':_("Turtle will not draw when moved."), - 'picture1x1':_("presentation template: select Journal object (with description)"), - 'picture1x1a':_("presentation template: select Journal object (no description)"), - 'picture1x2':_("presentation template: select two Journal objects"), - 'picture2x1':_("presentation template: select two Journal objects"), - 'picture2x2':_("presentation template: select four Journal objects"), - 'picturelist':_("presentation template: list of bullets"), - 'pitch':_('microphone input pitch'), - 'plus2':_("adds two alphanumeric inputs"), - 'polar':_("displays polar coordinates"), - 'pop':_("pops value off FILO (first-in last-out heap)"), - 'portfolio':_("Palette of presentation templates"), - 'print':_("prints value in status block at bottom of the screen"), - 'printheap':_("shows values in FILO (first-in last-out heap)"), - 'product2':_("multiplies two numeric inputs"), - 'push':_("pushes value onto FILO (first-in last-out heap)"), - 'random':_("returns random number between minimum (top) and maximum (bottom) values"), - 'remainder2':_("modular (remainder) operator"), - 'repeat':_("loops specified number of times"), - 'resistance':_("sensor input resistance"), - 'restore':_("restores most recent blocks from trash"), - 'restoreall':_("restore all blocks from trash"), - 'rightpos':_("xcor of right of screen"), - 'right':_("turns turtle clockwise (angle in degrees)"), - 'run-fastoff':_("Run"), - 'run-slowoff':_("Step"), - 'sandwichbottom':_("bottom block in a collapsibe stack: click to collapse"), - 'sandwichcollapsed':_("bottom block in a collapsed stack: click to open"), - '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.)"), - 'setpensize':_("sets size of the line drawn by the turtle"), - 'setscale':_("sets the scale of media"), - 'setshade':_("sets shade of the line drawn by the turtle"), - 'settextcolor':_("sets color of text drawn by the turtle"), - 'settextsize':_("sets size of text drawn by turtle"), - 'setxy':_("moves turtle to position xcor, ycor; (0, 0) is in the center of the screen."), - 'shade':_("holds current pen shade"), - 'show':_("draws text or show media from the Journal"), - 'showblocks':_("restores hidden blocks"), - 'sqrt':_("calculates square root"), - 'stack1':_("invokes Action 1 stack"), - 'stack2':_("invokes Action 2 stack"), - 'stack':_("invokes named action stack"), - 'start':_("connects action to toolbar run buttons"), - 'startfill':_("starts filled polygon (used with end fill block)"), - 'stopfill':_("completes filled polygon (used with start fill block)"), - 'stopiton':_("Stop turtle"), - 'stopstack':_("stops current action"), - 'storeinbox1':_("stores numeric value in Variable 1"), - 'storeinbox2':_("stores numeric value in Variable 2"), - 'storein':_("stores numeric value in named variable"), - 'string':_("string value"), - 'template1x1':_("presentation template: select Journal object (with description)"), - 'template1x1a':_("presentation template: select Journal object (no description)"), - 'template1x2':_("presentation template: select two Journal objects"), - 'template2x1':_("presentation template: select two Journal objects"), - 'template2x2':_("presentation template: select four Journal objects"), - 'templatelist':_("presentation template: list of bullets"), - 'textcolor':_("holds current text color (can be used in place of a number block)"), - 'textsize':_("holds current text size (can be used in place of a number block)"), - 'toppos':_("ycor of top of screen"), - 'trash':_("Trashcan"), - 'turtle':_("Palette of turtle commands"), - 'until':_("do-until-True operator that uses boolean operators from Numbers palette"), - 'userdefined':_("runs code found in the tamyblock.py module found in the Journal"), - 'userdefined2args':_("runs code found in the tamyblock.py module found in the Journal"), - 'userdefined3args':_("runs code found in the tamyblock.py module found in the Journal"), - 'voltage':_("sensor voltage"), - 'volume':_("microphone input volume"), - 'vspace':_("jogs stack down"), - 'wait':_("pauses program execution a specified number of seconds"), - 'while':_("do-while-True operator that uses boolean operators from Numbers palette"), - 'width':_("the canvas width"), - 'xcor':_("holds current x-coordinate value of the turtle (can be used in place of a number block)"), - 'ycor':_("holds current y-coordinate value of the turtle (can be used in place of a number block)")} +HELP_STRINGS = {} # # 'dead key' Unicode dictionaries |