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.bender@gmail.com>2012-06-02 04:19:30 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-06-02 04:19:30 (GMT)
commit8c22cc83d06ef0da66e8b664b82940d7dcd1c7fd (patch)
treee4875d93ef2aeb618048c1c0df5c0691751eced4 /TurtleArt/talogo.py
parent683acac2f84ed0063bd2fc985c107d881977e5ee (diff)
don't drag canvas while program is executing
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r--TurtleArt/talogo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index 4aae737..db44a8e 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -156,6 +156,7 @@ class LogoCode:
from tagplay import stop_media
stop_media(self)
self.tw.active_turtle.show()
+ self.tw.running_blocks = False
def def_prim(self, name, args, fcn, rprim=False):
""" Define the primitives associated with the blocks """
@@ -215,6 +216,7 @@ class LogoCode:
except IndexError:
self.tw.showlabel('#nostack')
self.tw.showblocks()
+ self.tw.running_blocks = False
return None
if type(convert(x, float, False)) == float:
if int(float(x)) == x:
@@ -498,6 +500,7 @@ class LogoCode:
except ValueError:
debug_output('generator already executing',
self.tw.running_sugar)
+ self.tw.running_blocks = False
return False
else:
return False
@@ -508,12 +511,14 @@ class LogoCode:
self.hidden_turtle = None
else:
self.tw.active_turtle.show()
+ self.tw.running_blocks = False
return False
except logoerror, e:
self.tw.showblocks()
self.tw.display_coordinates()
self.tw.showlabel('syntaxerror', str(e))
self.tw.turtles.show_all()
+ self.tw.running_blocks = False
return False
return True