Changeset - 8b307310cc1b
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 17 years ago 2008-06-15 23:23:48
drewp@bigasterisk.com
when KC launches SC to edit a sub, don't place the window right on the main SC window
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -61,13 +61,13 @@ class SubmasterTk(Frame):
 
            bg='black', fg='white')
 
        levellabel.pack(side=TOP)
 
        self.scale.pack(side=BOTTOM, expand=1, fill=BOTH)
 
        bindkeys(self, "<Control-Key-l>", self.launch_subcomposer)
 

	
 
    def launch_subcomposer(self, *args):
 
        subprocess.Popen(["bin/subcomposer", self.name])
 
        subprocess.Popen(["bin/subcomposer", "--no-geometry", self.name])
 

	
 
class KeyboardComposer(Frame, SubClient):
 
    def __init__(self, root, submasters, current_sub_levels=None,
 
                 hw_sliders=True):
 
        Frame.__init__(self, root, bg='black')
 
        SubClient.__init__(self)
bin/subcomposer
Show inline comments
 
@@ -144,29 +144,33 @@ def open_sub_editing_window(subname, use
 
        tk.mainloop()
 

	
 
#############################
 

	
 
if __name__ == "__main__":
 
    parser = OptionParser(usage="%prog [subname]")
 
    parser.add_option('--no-geometry', action='store_true',
 
                      help="don't save/restore window geometry")
 
    opts, args = parser.parse_args()
 

	
 
    root=tk.Tk()
 
    root.config(bg='black')
 
    root.tk_setPalette("#004633")
 
    if not opts.no_geometry:
 
    toplevelat("subcomposer", root)
 

	
 
    sc = Subcomposer(root, dmxdummy=0,
 
                     #numchannels=276 # use this to see all the skyline dims
 
                     #numchannels=118
 
                     )
 
    sc.pack()
 

	
 
    tk.Label(root,text="Bindings: B1 adjust level; B2 set full; B3 instant bump",
 
             font="Helvetica -12 italic",anchor='w').pack(side='top',fill='x')
 

	
 
    if len(args) == 1:
 
        root.config(bg='green') # trying to make these look distinctive
 
        sc.loadsub(args[0])
 
        sc.fill_both_boxes(args[0])
 

	
 
    while 1:
 
        root.update()
 
        sc.considersendupdate()
0 comments (0 inline, 0 general)