Mercurial > code > home > repos > light9
comparison light8/panels.py @ 108:115dd48e15a9
latest changes. couldn't commit lightboard for some reason
author | dmcc |
---|---|
date | Tue, 23 Jul 2002 01:13:38 +0000 |
parents | 47bda76f5236 |
children |
comparison
equal
deleted
inserted
replaced
107:47bda76f5236 | 108:115dd48e15a9 |
---|---|
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 whatsup_cb=None): |
15 Frame.__init__(self,parent, bg='black') | 15 Frame.__init__(self,parent, bg='black') |
16 controlpanel = self | 16 controlpanel = self |
17 for txt,cmd in ( | 17 for txt,cmd in ( |
18 ('Quit', quit_cb), | 18 ('Quit', quit_cb), |
19 ('Refresh', refresh_cb), | 19 ('Refresh', refresh_cb), |
22 ('Clear X', lambda: xfader.clearallbuttons('x')), | 22 ('Clear X', lambda: xfader.clearallbuttons('x')), |
23 ('On -> Y', lambda: xfader.grab('y')), | 23 ('On -> Y', lambda: xfader.grab('y')), |
24 ('Clear Y', lambda: xfader.clearallbuttons('y')), | 24 ('Clear Y', lambda: xfader.clearallbuttons('y')), |
25 ("What's up?", whatsup_cb)): | 25 ("What's up?", whatsup_cb)): |
26 Button(controlpanel, text=txt, command=cmd, bg='black', | 26 Button(controlpanel, text=txt, command=cmd, bg='black', |
27 fg='white').pack(side='top', fill='x') | 27 fg='white',font=stdfont, padx=0, pady=0).pack(side='top', fill='x') |
28 # jostle button | 28 # jostle button |
29 Checkbutton(controlpanel, text="Jostle", bg='black', fg='white', | 29 Checkbutton(controlpanel, text="Jostle", bg='black', fg='white', |
30 command=jostle_cb).pack(side=TOP, fill=X) | 30 command=jostle_cb).pack(side=TOP, fill=X) |
31 | 31 |
32 class Console: | 32 class Console: |