Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-25 01:16:44 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-25 01:16:44 (GMT)
commit54400c344ec73be0ad2d4fbc03284b648ce7e55a (patch)
tree472eb1d2cb59fe30aaf5ddc42de8a7be163624f9
parent85ce642993c46f4f30f71faa2afded9a49278f73 (diff)
fixed expandable-block logic
-rw-r--r--taconstants.py6
-rw-r--r--tawindow.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/taconstants.py b/taconstants.py
index 123896f..681f3c9 100644
--- a/taconstants.py
+++ b/taconstants.py
@@ -144,6 +144,9 @@ BOX_COLORS = {'red':["#FF0000","#A00000"],'orange':["#FFD000","#AA8000"],
'cyan':["#00FFFF","#00A0A0"],'blue':["#0000FF","#000080"],
'purple':["#FF00FF","#A000A0"]}
+#
+# Misc. parameters
+#
PALETTE_HEIGHT = 120
PALETTE_WIDTH = 175
SELECTOR_WIDTH = 55
@@ -153,6 +156,7 @@ SELECTED_STROKE_WIDTH = 1.0
STANDARD_STROKE_WIDTH = 1.0
BLOCK_SCALE = 2.0
PALETTE_SCALE = 1.5
+DEFAULT_TURTLE = 1
#
# Block-style definitions
@@ -206,7 +210,7 @@ PORTFOLIO_STYLE_1x2 = ['template1x2']
# Blocks that are expandable
#
EXPANDABLE = ['vspace', 'hspace', 'templatelist', 'list', 'identity2',
- 'myfunc1arg', 'myfunc2arg', 'myfunc3arg']
+ 'myfunc1arg', 'myfunc2arg']
#
# Blocks that are 'collapsible'
diff --git a/tawindow.py b/tawindow.py
index d451e5f..d339b07 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1409,6 +1409,8 @@ class TurtleArtWindow():
dy = blk.add_arg(False)
blk.primitive = 'myfunction3'
blk.name = 'myfunc3arg'
+ else:
+ dy = blk.add_arg()
for b in group:
b.spr.move_relative((0, dy))
blk.connections.append(blk.connections[n-1])