Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-09-23 19:54:26 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-09-23 19:54:26 (GMT)
commit7b4847ca88d4be77938e090abac11ecdb31b19a8 (patch)
tree026cce20a11cbca40727c689f52ea04dbec2540f /TurtleArt/tablock.py
parentb1a9941704e2a8099c102cca9ed2462fd5641c4d (diff)
fixed problem with loading old-style sandwichtop_no_arm blocks
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index ccd362d..ffa50b2 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -410,13 +410,13 @@ class Block:
elif self.name in FLOW_STYLE_ELSE:
self._make_flow_style_else(svg)
elif self.name in COLLAPSIBLE_TOP:
- self._make_collapsible_style_top(svg)
+ self._make_collapsible_style_top(svg, arm=True, label=True)
elif self.name in COLLAPSIBLE_TOP_NO_ARM:
- self._make_collapsible_style_top(svg, no_arm=True)
+ self._make_collapsible_style_top(svg, arm=False, label=True)
elif self.name in COLLAPSIBLE_TOP_NO_LABEL:
- self._make_collapsible_style_top(svg, label=False)
+ self._make_collapsible_style_top(svg, arm=True, label=False)
elif self.name in COLLAPSIBLE_TOP_NO_ARM_NO_LABEL:
- self._make_collapsible_style_top(svg, no_arm=True, label=False)
+ self._make_collapsible_style_top(svg, arm=False, label=False)
elif self.name in COLLAPSIBLE_BOTTOM:
self._make_collapsible_style_bottom(svg)
elif self.name in PORTFOLIO_STYLE_2x2:
@@ -756,9 +756,9 @@ class Block:
['flow', False, self.svg.docks[4][0],
self.svg.docks[4][1], ']']]
- def _make_collapsible_style_top(self, svg, no_arm=False, label=True):
+ def _make_collapsible_style_top(self, svg, arm=True, label=True):
self.svg.expand(self.dx+self.ex, self.ey)
- self.svg.set_no_arm(no_arm)
+ self.svg.set_arm(arm)
self._make_block_graphics(svg, self.svg.sandwich_top, label)
if label:
self.docks = [['flow', True, self.svg.docks[0][0],