aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/scripts
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-08-21 04:17:01 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-08-21 04:17:01 +0000
commite4eff144d6733edd2111e53613904f22cef9a109 (patch)
tree9d3f38dd676e5c791089fbc3ad956cc493f61a02 /externals/grill/py/scripts
parentba5b1684b1279115b95e274d1854fb14fe49587e (diff)
""
svn path=/trunk/; revision=1965
Diffstat (limited to 'externals/grill/py/scripts')
-rw-r--r--externals/grill/py/scripts/pak.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/externals/grill/py/scripts/pak.py b/externals/grill/py/scripts/pak.py
new file mode 100644
index 00000000..17841630
--- /dev/null
+++ b/externals/grill/py/scripts/pak.py
@@ -0,0 +1,14 @@
+import pyext
+
+class pak(pyext._class):
+ def __init__(self,n):
+ # n should be type-checked
+ self._inlets = n
+ self._outlets = 1
+ # initialize list
+ self.lst = [0 for x in range(n)]
+
+ def _anything_(self,n,args):
+ # args should be type-checked!
+ self.lst[n-1] = args
+ self._outlet(1,self.lst)