diff 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
line wrap: on
line diff
--- a/light8/panels.py	Sun Jul 21 04:38:19 2002 +0000
+++ b/light8/panels.py	Sun Jul 21 07:20:33 2002 +0000
@@ -10,7 +10,8 @@
 monofont = ('Courier', 8)
 
 class Controlpanel(Frame):
-    def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb):
+    def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb, 
+                 whatsup_cb):
         Frame.__init__(self,parent, bg='black')
         controlpanel = self
         for txt,cmd in (
@@ -20,7 +21,8 @@
             ('On -> X',     lambda: xfader.grab('x')),
             ('Clear X',     lambda: xfader.clearallbuttons('x')),
             ('On -> Y',     lambda: xfader.grab('y')),
-            ('Clear Y',     lambda: xfader.clearallbuttons('y'))):
+            ('Clear Y',     lambda: xfader.clearallbuttons('y')),
+            ("What's up?",     whatsup_cb)):
             Button(controlpanel, text=txt, command=cmd, bg='black', 
                 fg='white').pack(side='top', fill='x')
         # jostle button