Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-08 13:36:05 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-08 13:36:05 (GMT)
commit34d13acd6453f0bfea8ac0c55eec4b737bddea5c (patch)
treebe70abb167ff8ae798cdedb3d23f8b33645a0bf1 /TurtleArt/talogo.py
parent5c0fb4a31b17e085a90649fca47a37c53b8c7c83 (diff)
refactor handling of extra code in python export
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r--TurtleArt/talogo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index f4511df..775af0f 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -735,6 +735,9 @@ class LogoCode:
""" Stop execution of a stack """
self.procstop = True
+ def prim_turtle(self, name):
+ self.tw.turtles.set_turtle(name)
+
def prim_wait(self, wait_time):
""" Show the turtle while we wait """
self.tw.turtles.get_active_turtle().show()
@@ -1357,7 +1360,7 @@ class LogoCode:
first_label_blk = HiddenBlock('string', value=action_flow_name)
# Assign new connections and build the docks
- if inflow is not None:
+ if inflow is not None and b in inflow.connections:
i = inflow.connections.index(b)
if until_blk and whileflow is not None:
inflow.connections[i] = action_first