Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples/speak.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-10-30 17:24:11 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-10-30 17:24:11 (GMT)
commit955cbca83a84b0c1ea06f8c33dfec8dd0f850ed1 (patch)
treeb35c003c4250652885887bfa8e554ce84b2b8696 /pysamples/speak.py
parent32444889db2d7573426b3e93722a566b36385bc3 (diff)
comvert custom blocks to new prim style -- args is passed as a tuple
Diffstat (limited to 'pysamples/speak.py')
-rw-r--r--pysamples/speak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysamples/speak.py b/pysamples/speak.py
index 30762a9..13215e8 100644
--- a/pysamples/speak.py
+++ b/pysamples/speak.py
@@ -28,7 +28,7 @@ def myblock(tw, arg):
import os
pitch = None
- if type(arg) == type([]):
+ if len(arg) > 1:
text = arg[0]
if len(arg) > 1:
pitch = int(arg[1])
@@ -37,7 +37,7 @@ def myblock(tw, arg):
elif pitch < 0:
pitch = 0
else:
- text = arg
+ text = arg[0]
# Turtle Art numbers are passed as float,
# but they may be integer values.