From 5ff9f8167aeb7192e87c4fe8723379353446ad5b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 22 Mar 2013 11:36:10 +0000 Subject: sleep during sleep block --- diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 1416a61..12635ab 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -58,7 +58,7 @@ that the icons should be the same size (55x55) as the others. (This is the default icon size for Sugar toolbars.) """ -from time import time +from time import time, sleep from math import sqrt from random import uniform @@ -1180,6 +1180,7 @@ variable')) self.tw.active_turtle.show() endtime = _millisecond() + wait_time * 1000. while _millisecond() < endtime: + sleep(wait_time / 10.) yield True self.tw.active_turtle.hide() self.tw.lc.ireturn() -- cgit v0.9.1