Changeset - 2cd759c2b3c7
[Not reviewed]
default
0 1 0
dmcc - 22 years ago 2002-07-07 12:31:18

(21:29:34) dmcc: no need to have the E for effects
(21:29:34) dmcc: no need to have the E for effects
(21:29:48) drewp: oh yeah
(21:29:52) drewp: feel free to take care of that
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light8/panels.py
Show inline comments
 
@@ -100,41 +100,42 @@ class Subpanels:
 
                width1=longestname
 

	
 
            # make frame that surrounds the whole submaster
 
            f=Frame(parent, bd=1, relief='raised')
 
            f.pack(fill='both',exp=1,side=('top','left')[sub.is_effect])
 

	
 
            # make DoubleVar (there might be one left around from before a refresh)
 
            if name not in scalelevels:
 
                scalelevels[name]=DoubleVar()
 

	
 
            sub.set_slider_var(scalelevels[name])
 

	
 
            scaleopts = {}
 
            if sub.color:
 
                scaleopts['troughcolor'] = sub.color
 

	
 
            s = FlyingFader(f, label=str(name), variable=scalelevels[name],
 
                            showvalue=0, length=300-17,
 
                            width=18, sliderlength=18,
 
                            to=end1,res=.001,from_=end2,bd=0, font=stdfont,
 
                            orient=orient1,
 
                            labelwidth=width1,
 
                            **scaleopts)
 

	
 
            if not sub.is_effect:
 
            eb = Button(f,text="E",font=stdfont,padx=0,pady=0,bd=1,command=lambda subediting=subediting,sub=sub: subediting.setsub(sub))
 
            eb.pack(side=side1,fill='both',padx=0,pady=0)
 

	
 
            for axis in ('y','x'):
 
                cvar=IntVar()
 
                cb=Togglebutton(f,text=axis.upper(),variable=cvar,font=stdfont, padx=0, 
 
                               pady=0, bd=1)
 
                cb.pack(side=side1,fill='both', padx=0, pady=0)
 
                s.bind('<Key-%s>'%axis, lambda ev,cb=cb: cb.invoke)
 
                xfader.registerbutton(name,axis,cvar)
 

	
 
            s.pack(side='left', fill=BOTH)
 

	
 
            # effects frame?
 
            sframe = Frame(f,bd=2,relief='groove')
 
            sub.draw_tk(sframe)
 
            sframe.pack(side='left',fill='y')
0 comments (0 inline, 0 general)