Changeset - fd06667e00e1
[Not reviewed]
default
0 1 0
Drew Perttula - 19 years ago 2006-06-16 19:35:08
drewp@bigasterisk.com
b2 light setting in subcomposer
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/dmxchanedit.py
Show inline comments
 
@@ -70,20 +70,24 @@ class Onelevel(tk.Frame):
 
        def b1up(ev):
 
            self.desc_lab.config(bg='black')
 
        def b3up(ev):
 
            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))
 
        
 
    def colorlabel(self):
 
        """color the level label based on its own text (which is 0..100)"""
 
        txt=self.level_lab['text'] or "0"
0 comments (0 inline, 0 general)