changeset 320:fd06667e00e1

b2 light setting in subcomposer
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 16 Jun 2006 19:35:08 +0000
parents 2193eab0650b
children 064684eca7d2
files light9/dmxchanedit.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/dmxchanedit.py	Fri Jun 16 19:34:30 2006 +0000
+++ b/light9/dmxchanedit.py	Fri Jun 16 19:35:08 2006 +0000
@@ -73,14 +73,18 @@
             self.changelevel(0.0)
         def b3down(ev):
             self.changelevel(1.0)
+        def b2down(ev): # same thing for now
+            self.changelevel(1.0)
 
         # make the buttons work in the child windows
         for w in self.winfo_children():
             for e,func in (('<ButtonPress-1>',b1down),
                            ('<B1-Motion>',b1motion),
                            ('<ButtonRelease-1>',b1up),
+                           ('<ButtonPress-2>', b2down),
                            ('<ButtonRelease-3>', b3up),
                            ('<ButtonPress-3>', b3down)):
+
                 w.bind(e,func)
 #                w.bind(e,lambda ev,e=e: eventtoparent(ev,e))