Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2014-01-18 14:32:12 (GMT)
committer Walter Bender <walter@sugarlabs.org>2014-01-18 14:32:12 (GMT)
commitae8054b5275325ee924372205bbb8ef92677e3a0 (patch)
tree8637eb6509e76a9ca551cb202ca097efe0fbac18 /TurtleArt
parent08ce7208268348e5de76918532c8a8cb220ca528 (diff)
fix issue with canvas dragging during executionv197
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/talogo.py5
-rw-r--r--TurtleArt/tawindow.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index ec6e7e7..7307b99 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -554,6 +554,7 @@ class LogoCode:
while (_millisecond() - starttime) < 120:
try:
if self.step is None:
+ self.tw.running_blocks = False
return False
if self.tw.running_turtleart:
try:
@@ -588,12 +589,14 @@ class LogoCode:
except BaseException as error:
if isinstance(error, (StopIteration,
logoerror)):
+ self.tw.running_blocks = False
raise error
else:
traceback.print_exc()
self.tw.showlabel(
'status', '%s: %s' %
(type(error).__name__, str(error)))
+ self.tw.running_blocks = False
return False
except StopIteration:
if self.tw.running_turtleart:
@@ -613,10 +616,10 @@ class LogoCode:
self.tw.display_coordinates()
self.tw.showlabel('syntaxerror', str(e))
self.tw.turtles.show_all()
- self.tw.running_blocks = False
else:
traceback.print_exc()
self.tw.showlabel('status', 'logoerror: ' + str(e))
+ self.tw.running_blocks = False
return False
return True
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index db24d08..09b9b30 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -359,6 +359,7 @@ class TurtleArtWindow():
font_map_default.set_resolution(dpi)
def _tablet_mode(self):
+ ''' DEPRECATED '''
return False # Sugar will autoscroll the window for me
def _get_plugin_home(self):
@@ -3278,7 +3279,7 @@ before making changes to your program'))
else:
while self.lc.doevalstep():
pass
- self.running_blocks = False
+ # self.running_blocks = False # Should be handled in talogo.py
def _snap_to_dock(self):
''' Snap a block (selected_block) to the dock of another block