Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taconstants.py
diff options
context:
space:
mode:
Diffstat (limited to 'taconstants.py')
-rw-r--r--taconstants.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/taconstants.py b/taconstants.py
index 22264b7..e102c47 100644
--- a/taconstants.py
+++ b/taconstants.py
@@ -179,7 +179,8 @@ BOX_STYLE = ['number', 'xcor', 'ycor', 'heading', 'pensize', 'color', 'shade',
'textcolor', 'textsize', 'box1', 'box2', 'string', 'leftpos', 'scale',
'toppos', 'rightpos', 'bottompos', 'width', 'height', 'pop', 'keyboard',
'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple',
- 'titlex', 'titley', 'leftx', 'topy', 'rightx', 'bottomy']
+ 'titlex', 'titley', 'leftx', 'topy', 'rightx', 'bottomy',
+ 'volume', 'pitch', 'voltage', 'resistance']
BOX_STYLE_MEDIA = ['description', 'audio', 'journal']
NUMBER_STYLE = ['plus2', 'product2', 'myfunc']
NUMBER_STYLE_VAR_ARG = ['myfunc1arg', 'myfunc2arg', 'myfunc3arg']
@@ -302,6 +303,7 @@ BLOCK_NAMES = {
'picture2x2':[' '],
'picture2x1':[' '],
'picture1x2':[' '],
+ 'pitch':[_('pitch')],
'plus2':['+'],
'polar':[_('polar')],
'pop':[_('pop')],
@@ -314,6 +316,7 @@ BLOCK_NAMES = {
'red':[_('red')],
'remainder2':[_('mod')],
'repeat':[' ',_('repeat')],
+ 'resistance':[_('resistance')],
'restore':[_('restore last')],
'restoreall':[_('restore all')],
'right':[_('right')],
@@ -361,6 +364,8 @@ BLOCK_NAMES = {
'topy':[_('picture top')],
'turtle':[_('turtle')],
'until':[_('until')],
+ 'voltage':[_('voltage')],
+ 'volume':[_('volume')],
'vspace':[' '],
'wait':[_('wait')],
'while':[_('while')],
@@ -430,6 +435,7 @@ PRIMITIVES = {
'pendown':'pendown',
'pensize':'pensize',
'penup':'penup',
+ 'pitch':'pitch',
'plus2':'plus',
'polar':'polar',
'pop':'pop',
@@ -442,6 +448,7 @@ PRIMITIVES = {
'red':'red',
'remainder2':'mod',
'repeat':'repeat',
+ 'resistance':'resistance',
'right':'right',
'rightpos':'rpos',
'rightx':'rightx',
@@ -484,6 +491,8 @@ PRIMITIVES = {
'titley':'titley',
'toppos':'tpos',
'topy':'topy',
+ 'voltage':'voltage',
+ 'volume':'volume',
'vspace':'nop',
'wait':'wait',
'while2':'while',
@@ -718,6 +727,7 @@ HELP_STRINGS = {
'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)"),
@@ -729,6 +739,7 @@ HELP_STRINGS = {
'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"),
@@ -776,6 +787,8 @@ HELP_STRINGS = {
'trash':_("Trashcan"),
'turtle':_("Palette of turtle commands"),
'until':_("do-until-True operator that uses boolean operators from Numbers palette"),
+ '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"),