diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-02-09 16:17:44 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-02-09 16:17:44 (GMT) |
commit | 21b5205a773fb9a5049a7ed9b973f268fd598d63 (patch) | |
tree | d68288ac04f50d8ebe7bdf25d6a2c1e10e18b540 /taconstants.py | |
parent | 25d9cf32599975491adec6ea6d0b955c620125cf (diff) |
expandable no. args to user-defined blocks
Diffstat (limited to 'taconstants.py')
-rw-r--r-- | taconstants.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/taconstants.py b/taconstants.py index fa3f1b5..09baad6 100644 --- a/taconstants.py +++ b/taconstants.py @@ -184,7 +184,8 @@ BOX_STYLE = ['number', 'xcor', 'ycor', 'heading', 'pensize', 'color', 'shade', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'titlex', 'titley', 'leftx', 'topy', 'rightx', 'bottomy'] BOX_STYLE_MEDIA = ['description', 'audio', 'journal'] -NUMBER_STYLE = ['plus2', 'product2', 'myfunc'] +NUMBER_STYLE = ['plus2', 'product2'] +NUMBER_STYLE_VAR_ARG = ['myfunc'] NUMBER_STYLE_BLOCK = ['random'] NUMBER_STYLE_PORCH = ['minus2', 'division2', 'remainder2'] NUMBER_STYLE_1ARG = ['sqrt', 'identity2'] @@ -319,7 +320,7 @@ MACROS = { # # blocks that are expandable # -EXPANDABLE = ['vspace', 'hspace', 'templatelist', 'list', 'identity2'] +EXPANDABLE = ['vspace', 'hspace', 'templatelist', 'list', 'identity2', 'myfunc'] # # Old block styles that need dock adjustments @@ -379,7 +380,7 @@ BLOCK_NAMES = { 'less2':['<'], 'list':['list'], 'minus2':['–'], - 'myfunc':[_('Python'),_('code'),_('value')], + 'myfunc':[_('Python'),'f(x)',_('x')], 'nop':[_(' ')], 'not':[_('not')], 'number':['100'], @@ -657,6 +658,9 @@ OLD_NAMES = {'product':'product2', 'storeinbox':'storein', 'minus':'minus2', # TITLEXY = (0.9375, 0.875) +# +# Relative placement of portfolio objects (used by depreciated blocks) +# TEMPLATES = {'t1x1': (0.5, 0.5, 0.0625, 0.125, 1.05, 0), 't2z1': (0.5, 0.5, 0.0625, 0.125, 1.05, 1.05), 't1x2': (0.45, 0.45, 0.0625, 0.125, 1.05, 1.05), |