From cbfc7003fa5adf7455b3892a38cc780195f4ef8c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 04 Nov 2013 23:44:04 +0000 Subject: add more restrictions to arithmetic docking --- (limited to 'TurtleArt/taconstants.py') diff --git a/TurtleArt/taconstants.py b/TurtleArt/taconstants.py index 1cedaa3..811e499 100644 --- a/TurtleArt/taconstants.py +++ b/TurtleArt/taconstants.py @@ -79,6 +79,11 @@ XO4 = 'xo4' UNKNOWN = 'unknown' TMP_SVG_PATH = '/tmp/turtle_output.svg' +ARG_MUST_BE_NUMBER = ['product2', 'minus2', 'random', 'remainder2', 'forward', + 'back', 'left', 'right', 'arc', 'setxy2', 'setxy', + 'fillscreen', 'setscale', 'setpensize', 'wait', + 'setcolor', 'seth', 'setgray', 'setshade', 'string'] + KEY_DICT = { 'Left': 1, 'KP_Left': 1, -- cgit v0.9.1