From 3a4a2a2dc54d2b0d71691cff3001404d03d77fcb Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 20 Oct 2003 02:38:10 +0000 Subject: "" svn path=/trunk/; revision=1110 --- externals/grill/py/scripts/sendrecv.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'externals/grill/py/scripts') 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!""" -- cgit v1.2.1