Changeset - e4a711d9a338
[Not reviewed]
default
0 2 0
drewp - 21 years ago 2004-06-16 14:08:47

new dispatcher import
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
flax/Subcomposer.py
Show inline comments
 
#!/usr/bin/python
 

	
 
from __future__ import division, nested_scopes
 
import Tkinter as tk
 
from dmxchanedit import Levelbox
 
import sys,os,time,atexit
 
sys.path.append("../light8")
 
import dmxclient
 
import Patch
 
import Submaster
 

	
 
import dispatcher
 
from dispatch import dispatcher
 

	
 
class Subcomposer(tk.Frame):
 
    def __init__(self, master, levelboxopts=None, dmxdummy=0, numchannels=68,
 
        use_persistentlevels=0):
 
        tk.Frame.__init__(self, master, bg='black')
 
        self.dmxdummy = dmxdummy
 
        self.numchannels = numchannels
 

	
 
        self.levels = [0]*68 # levels should never get overwritten, just edited
 

	
 
        self.levelbox = Levelbox(self)
 
        self.levelbox.pack(side='top')
flax/dmxchanedit.py
Show inline comments
 
"""
 

	
 
widget to show all dmx channel levels and allow editing. levels might
 
not actually match what dmxserver is outputting.
 

	
 
"""
 
from __future__ import nested_scopes,division
 
import Tkinter as tk
 
import sys
 
sys.path.append("../light8")
 
import Patch
 
from uihelpers import make_frame, colorlabel, eventtoparent
 
import dispatcher
 
from dispatch import dispatcher
 

	
 
stdfont = ('Arial', 10)
 

	
 
class Onelevel(tk.Frame):
 
    """a name/level pair"""
 
    def __init__(self, parent, channelnum):
 
        """channelnum is 1..68, like the real dmx"""
 
        tk.Frame.__init__(self,parent)
 

	
 
        self.channelnum=channelnum
 
        self.currentlevel=0 # the level we're displaying, 0..1
 
        
0 comments (0 inline, 0 general)