Changeset - 7ecde61ebff1
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 15 years ago 2010-06-19 23:17:47
drewp@bigasterisk.com
fix SC loading
Ignore-this: 8131e2e09b1561ad042f82d81a5ccfc9
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/subcomposer
Show inline comments
 
@@ -8,13 +8,13 @@ try:
 
    from dispatch import dispatcher
 
except ImportError:
 
    import louie as dispatcher
 

	
 
import run_local
 
from light9.dmxchanedit import Levelbox
 
from light9 import dmxclient, Patch, Submaster
 
from light9 import dmxclient, Patch, Submaster, showconfig
 
from light9.uihelpers import toplevelat
 

	
 
class Subcomposer(tk.Frame):
 
    def __init__(self, master, levelboxopts=None, dmxdummy=0, numchannels=72,
 
        use_persistentlevels=0):
 
        tk.Frame.__init__(self, master, bg='black')
 
@@ -83,13 +83,13 @@ class Subcomposer(tk.Frame):
 
                leveldict[Patch.get_channel_name(i+1)]=lev
 

	
 
        s=Submaster.Submaster(subname,leveldict=leveldict)
 
        s.save()
 
    def loadsub(self, subname):
 
        """puts a sub into the levels, replacing old level values"""
 
        s=Submaster.Submasters().get_sub_by_name(subname)
 
        s=Submaster.Submasters(showconfig.getGraph()).get_sub_by_name(subname)
 
        self.set_levels(s.get_dmx_list())
 
        dispatcher.send("levelchanged")
 
    def sendupdate(self):
 
        if not self.dmxdummy:
 
            dmxclient.outputlevels(self.levels)
 
            self.lastupdate = time.time()
0 comments (0 inline, 0 general)