changeset 367:0db89c347000

Submaster: use leveldict kw where we used to just pass leveldicts
author David McClosky <dmcc@bigasterisk.com>
date Fri, 15 Jun 2007 17:41:32 +0000
parents 430014be95ce
children ce302e4a73dc
files light9/Submaster.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/light9/Submaster.py	Fri Jun 15 18:06:46 2007 +0000
+++ b/light9/Submaster.py	Fri Jun 15 17:41:32 2007 +0000
@@ -246,7 +246,7 @@
 def fullsub(*chans):
     """Make a submaster with chans at full."""
     return Submaster('%r' % chans,
-        dict([(c, 1.0) for c in chans]), temporary=True)
+        leveldict=dict([(c, 1.0) for c in chans]), temporary=True)
 
 # a global instance of Submasters, created on demand
 _submasters = None
@@ -270,14 +270,14 @@
 
     try:
         val = int(name)
-        s = Submaster("#%d" % val, {val : 1.0}, temporary=True)
+        s = Submaster("#%d" % val, leveldict={val : 1.0}, temporary=True)
         return s
     except ValueError:
         pass
 
     try:
         subnum = Patch.get_dmx_channel(name)
-        s = Submaster("'%s'" % name, {subnum : 1.0}, temporary=True)
+        s = Submaster("'%s'" % name, leveldict={subnum : 1.0}, temporary=True)
         return s
     except ValueError:
         pass