Mercurial > code > home > repos > light9
comparison light8/panels.py @ 52:065896b0913c
emergency commit
author | dmcc |
---|---|
date | Mon, 08 Jul 2002 03:25:42 +0000 |
parents | 71489bb71528 |
children | 032b2b67bc10 |
comparison
equal
deleted
inserted
replaced
51:71489bb71528 | 52:065896b0913c |
---|---|
155 command=lambda: subediting.setsub(sub)) | 155 command=lambda: subediting.setsub(sub)) |
156 eb.pack(side=side1,fill='both',padx=0,pady=0) | 156 eb.pack(side=side1,fill='both',padx=0,pady=0) |
157 | 157 |
158 for axis in ('y','x'): | 158 for axis in ('y','x'): |
159 cvar=IntVar() | 159 cvar=IntVar() |
160 cb=Togglebutton(f,text=axis.upper(),variable=cvar,font=stdfont, padx=0, | 160 eb_color = ('red', 'green')[axis == 'y'] |
161 pady=0, bd=1) | 161 cb=Togglebutton(f,text=axis.upper(),variable=cvar,font=stdfont, |
162 padx=0, pady=0, bd=1, downcolor=eb_color) | |
162 cb.pack(side=side1,fill='both', padx=0, pady=0) | 163 cb.pack(side=side1,fill='both', padx=0, pady=0) |
163 s.bind('<Key-%s>'%axis, lambda ev,cb=cb: cb.invoke) | 164 s.bind('<Key-%s>'%axis, lambda ev,cb=cb: cb.invoke) |
164 xfader.registerbutton(name,axis,cvar) | 165 xfader.registerbutton(name,axis,cvar) |
165 | 166 |
166 s.pack(side='left', fill=BOTH) | 167 s.pack(side='left', fill=BOTH) |