[PD-cvs] externals/grill/py/scripts sendrecv.py,1.6,1.7

Thomas Grill xovo at users.sourceforge.net
Thu Mar 23 02:42:07 CET 2006


Update of /cvsroot/pure-data/externals/grill/py/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24934/scripts

Modified Files:
	sendrecv.py 
Log Message:
added message bundle functionality (pyext.Bundle class)
enable compiled-only scripts (without .py)
small optimizations and fixes
some optimizations and py reload fix
better error message for reload with invalid args
enable module packages (module/__init__.py[co]), now also for Max


Index: sendrecv.py
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/scripts/sendrecv.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** sendrecv.py	19 Jan 2005 04:58:35 -0000	1.6
--- sendrecv.py	23 Mar 2006 01:42:04 -0000	1.7
***************
*** 136,140 ****
  
  		# called scripting method should run on its own thread
! 		if self._isthreaded():
  		    print "Threading is on"
  		    self._detach(1)  
--- 136,140 ----
  
  		# called scripting method should run on its own thread
! 		if self._isthreaded:
  		    print "Threading is on"
  		    self._detach(1)  
***************
*** 144,148 ****
  
  		num = 12				# number of objects
! 		ori = complex(150,150)  # origin
  		rad = 100				# radius
  		l = range(num)			# initialize list
--- 144,148 ----
  
  		num = 12				# number of objects
! 		ori = complex(150,180)  # origin
  		rad = 100				# radius
  		l = range(num)			# initialize list
***************
*** 153,157 ****
  			l[i] = ori+rad*exp(complex(0,i*2*pi/num))
  			self._tocanvas("obj",l[i].real,l[i].imag,"bng",15,250,50,0,"empty","yeah"+str(i),"empty",0,-6,64,8,0,-1,-1)
! 			self._tocanvas("connect",2,0,3+i,0)
  
  		# blink
--- 153,157 ----
  			l[i] = ori+rad*exp(complex(0,i*2*pi/num))
  			self._tocanvas("obj",l[i].real,l[i].imag,"bng",15,250,50,0,"empty","yeah"+str(i),"empty",0,-6,64,8,0,-1,-1)
! 			self._tocanvas("connect",6,0,7+i,0)
  
  		# blink





More information about the Pd-cvs mailing list