comparison flax/dmxchanedit.py @ 128:6dfe10a54fc4

new program to adjust indiv dmx channels and save the settings as new submasters
author drewp
date Sat, 14 Jun 2003 14:50:31 +0000
parents 45b12307c695
children 79bc84310e80
comparison
equal deleted inserted replaced
127:fae7751d9760 128:6dfe10a54fc4
8 import Tkinter as tk 8 import Tkinter as tk
9 import sys 9 import sys
10 sys.path.append("../light8") 10 sys.path.append("../light8")
11 import Patch 11 import Patch
12 from uihelpers import make_frame, colorlabel, eventtoparent 12 from uihelpers import make_frame, colorlabel, eventtoparent
13 from dispatch import dispatcher 13 import dispatcher
14 14
15 stdfont = ('Arial', 10) 15 stdfont = ('Arial', 10)
16 16
17 class Onelevel(tk.Frame): 17 class Onelevel(tk.Frame):
18 """a name/level pair""" 18 """a name/level pair"""
32 padx=0, pady=0, bd=0, height=1) 32 padx=0, pady=0, bd=0, height=1)
33 self.num_lab.pack(side='left') 33 self.num_lab.pack(side='left')
34 34
35 # text description of channel 35 # text description of channel
36 self.desc_lab=tk.Label(self, text=Patch.get_channel_name(channelnum), 36 self.desc_lab=tk.Label(self, text=Patch.get_channel_name(channelnum),
37 width=14, font=stdfont, anchor='w', 37 width=8, font=stdfont, anchor='w',
38 padx=0, pady=0, bd=0, 38 padx=0, pady=0, bd=0,
39 height=1, bg='black', fg='white') 39 height=1, bg='black', fg='white')
40 self.desc_lab.pack(side='left') 40 self.desc_lab.pack(side='left')
41 41
42 # current level of channel, shows intensity with color 42 # current level of channel, shows intensity with color