aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts/sendrecv.py
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-10-20 02:38:10 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-10-20 02:38:10 +0000
commit3a4a2a2dc54d2b0d71691cff3001404d03d77fcb (patch)
treec41c573f66dd2e08ccce61c8e9ed1aacc7e09f18 /externals/grill/py/scripts/sendrecv.py
parent6c11b94129b43ddb663122a4d6274489e63bca3d (diff)
""
svn path=/trunk/; revision=1110
Diffstat (limited to 'externals/grill/py/scripts/sendrecv.py')
-rw-r--r--externals/grill/py/scripts/sendrecv.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/py/scripts/sendrecv.py b/externals/grill/py/scripts/sendrecv.py
index 2d0eb9e6..0488359b 100644
--- a/externals/grill/py/scripts/sendrecv.py
+++ b/externals/grill/py/scripts/sendrecv.py
@@ -77,7 +77,7 @@ class ex1(pyext._class):
# you can but you don't need to
# unbinding is automatically done at destruction
- # you can also comment the _unbind lines
+ # you can also comment out the _unbind lines
self._unbind(self.recvname,self.recv)
self._unbind(self.recvname,recv_gl)
@@ -118,7 +118,7 @@ class ex2(pyext._class):
#################################################################
-from math import sin,cos,pi
+from math import pi
from cmath import exp
from random import random,randint
@@ -134,8 +134,9 @@ class ex3(pyext._class):
"""Class constructor"""
# called scripting method should run on its own thread
- self._detach(1)
-
+ if self._isthreaded():
+ print "Threading is on"
+ self._detach(1)
def bang_1(self):
"""Do some scripting - PD only!"""