comparison light8/panels.py @ 107:47bda76f5236

backed up backuper backed up backuper panels and Lightboard: "What's up?" feature: list subs that are on Lightboard: new incorporator algorithm that is 0-5x faster (usually 2x)
author dmcc
date Sun, 21 Jul 2002 07:20:33 +0000
parents e04f7b552bcd
children 115dd48e15a9
comparison
equal deleted inserted replaced
106:d8e2492e2947 107:47bda76f5236
8 8
9 stdfont = ('Arial', 8) 9 stdfont = ('Arial', 8)
10 monofont = ('Courier', 8) 10 monofont = ('Courier', 8)
11 11
12 class Controlpanel(Frame): 12 class Controlpanel(Frame):
13 def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb): 13 def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb,
14 whatsup_cb):
14 Frame.__init__(self,parent, bg='black') 15 Frame.__init__(self,parent, bg='black')
15 controlpanel = self 16 controlpanel = self
16 for txt,cmd in ( 17 for txt,cmd in (
17 ('Quit', quit_cb), 18 ('Quit', quit_cb),
18 ('Refresh', refresh_cb), 19 ('Refresh', refresh_cb),
19 ('Clear all', xfader.clearallbuttons), 20 ('Clear all', xfader.clearallbuttons),
20 ('On -> X', lambda: xfader.grab('x')), 21 ('On -> X', lambda: xfader.grab('x')),
21 ('Clear X', lambda: xfader.clearallbuttons('x')), 22 ('Clear X', lambda: xfader.clearallbuttons('x')),
22 ('On -> Y', lambda: xfader.grab('y')), 23 ('On -> Y', lambda: xfader.grab('y')),
23 ('Clear Y', lambda: xfader.clearallbuttons('y'))): 24 ('Clear Y', lambda: xfader.clearallbuttons('y')),
25 ("What's up?", whatsup_cb)):
24 Button(controlpanel, text=txt, command=cmd, bg='black', 26 Button(controlpanel, text=txt, command=cmd, bg='black',
25 fg='white').pack(side='top', fill='x') 27 fg='white').pack(side='top', fill='x')
26 # jostle button 28 # jostle button
27 Checkbutton(controlpanel, text="Jostle", bg='black', fg='white', 29 Checkbutton(controlpanel, text="Jostle", bg='black', fg='white',
28 command=jostle_cb).pack(side=TOP, fill=X) 30 command=jostle_cb).pack(side=TOP, fill=X)