Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tabasics.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-03-22 11:36:10 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-03-22 11:36:10 (GMT)
commit5ff9f8167aeb7192e87c4fe8723379353446ad5b (patch)
tree245317a17ae35cb2bee9aecd9bc4f9daddbed6fe /TurtleArt/tabasics.py
parent4e70ec09fe8ebe4cacb8c0f494b3c1eb7b4a0fc6 (diff)
sleep during sleep block
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r--TurtleArt/tabasics.py3
1 files changed, 2 insertions, 1 deletions
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()