Changeset - c7bba03ddc36
[Not reviewed]
default
0 1 0
David McClosky - 20 years ago 2005-06-17 18:11:45
dmcc@bigasterisk.com
keyboardcomposer has 'All to Zero' aka blackout
1 file changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -15,7 +15,6 @@ from light9.subclient import SubClient
 
from light9 import dmxclient, showconfig, networking
 
from light9.uihelpers import toplevelat
 

	
 

	
 
nudge_keys = {
 
    'up' : list('qwertyuiop'),
 
    'down' : list('asdfghjkl')
 
@@ -87,6 +86,9 @@ class KeyboardComposer(Frame, SubClient)
 

	
 
        self.buttonframe = Frame(self, bg='black')
 
        self.buttonframe.pack(side=BOTTOM)
 
        self.alltozerobutton = Button(self.buttonframe, text="All to Zero", 
 
            command=self.alltozero, bg='black', fg='white')
 
        self.alltozerobutton.pack(side='left')
 
        self.refreshbutton = Button(self.buttonframe, text="Refresh", 
 
            command=self.refresh, bg='black', fg='white')
 
        self.refreshbutton.pack(side=LEFT)
 
@@ -238,6 +240,11 @@ class KeyboardComposer(Frame, SubClient)
 
        self.buttonframe.destroy()
 
        self.draw_ui()
 

	
 
    def alltozero(self):
 
        for name, subtk in self.name_to_subtk.items():
 
            if subtk.scale.scale_var.get() != 0:
 
                subtk.scale.fade(value=0.0, length=0)
 

	
 
class LevelServer(xmlrpc.XMLRPC):
 
    def __init__(self,name_to_subtk):
 
        self.name_to_subtk = name_to_subtk
 
@@ -251,7 +258,6 @@ class LevelServer(xmlrpc.XMLRPC):
 
            ret=str(e)
 
        return ret
 

	
 

	
 
if __name__ == "__main__":
 
    s = Submasters()
 

	
0 comments (0 inline, 0 general)