Mercurial > code > home > repos > light9
diff bin/subcomposer @ 334:42e4c4728a66
ascoltami, subcomposer, keyboardcomposer use rdf show data; raise channel count to 270
author | drewp@bigasterisk.com |
---|---|
date | Mon, 02 Apr 2007 14:34:14 +0000 |
parents | 9827df597f86 |
children | 2c782ca93e73 |
line wrap: on
line diff
--- a/bin/subcomposer Mon Apr 02 14:33:38 2007 +0000 +++ b/bin/subcomposer Mon Apr 02 14:34:14 2007 +0000 @@ -3,7 +3,10 @@ from __future__ import division, nested_scopes import sys,os,time,atexit import Tkinter as tk -from dispatch import dispatcher +try: + from dispatch import dispatcher +except ImportError: + import louie as dispatcher import run_local from light9.dmxchanedit import Levelbox @@ -16,9 +19,9 @@ self.dmxdummy = dmxdummy self.numchannels = numchannels - self.levels = [0]*68 # levels should never get overwritten, just edited + self.levels = [0]*512 # levels should never get overwritten, just edited - self.levelbox = Levelbox(self) + self.levelbox = Levelbox(self, num_channels=numchannels) self.levelbox.pack(side='top') # the dmx levels we edit and output, range is 0..1 (dmx chan 1 is # the 0 element) @@ -134,7 +137,7 @@ root.wm_title("subcomposer") root.tk_setPalette("#004633") - sc = Subcomposer(root, dmxdummy=0) + sc = Subcomposer(root, dmxdummy=0, numchannels=276) sc.pack() tk.Label(root,text="Bindings: B1 adjust level; B3 instant bump",