annotate light8/panels.py @ 101:a995fd1a8f03

result of 7.12 performance
author dmcc
date Sun, 14 Jul 2002 02:44:27 +0000
parents d5deeed83228
children e04f7b552bcd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
1 """some of the panels"""
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
2 from __future__ import nested_scopes
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
3
51
71489bb71528 - Meet Fader. He is going to grow up and be a crossfader some day
dmcc
parents: 48
diff changeset
4 from Tix import *
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
5 from uihelpers import *
45b12307c695 Initial revision
drewp
parents:
diff changeset
6 import Patch
19
6284a812da50 makefile - add link to ../Widgets/FlyingFader.py
dmcc
parents: 16
diff changeset
7 from FlyingFader import FlyingFader
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
8
45b12307c695 Initial revision
drewp
parents:
diff changeset
9 stdfont = ('Arial', 8)
45b12307c695 Initial revision
drewp
parents:
diff changeset
10 monofont = ('Courier', 8)
45b12307c695 Initial revision
drewp
parents:
diff changeset
11
45b12307c695 Initial revision
drewp
parents:
diff changeset
12 class Controlpanel(Frame):
74
2dfae9ed1cda jostle feature, use it to shake levels mildly
dmcc
parents: 69
diff changeset
13 def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb):
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
14 Frame.__init__(self,parent)
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
15 controlpanel = self
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
16 for txt,cmd in (
45b12307c695 Initial revision
drewp
parents:
diff changeset
17 ('Quit', quit_cb),
45b12307c695 Initial revision
drewp
parents:
diff changeset
18 ('Refresh', refresh_cb),
45b12307c695 Initial revision
drewp
parents:
diff changeset
19 ('Clear all', xfader.clearallbuttons),
45b12307c695 Initial revision
drewp
parents:
diff changeset
20 ('On -> X', lambda: xfader.grab('x')),
45b12307c695 Initial revision
drewp
parents:
diff changeset
21 ('Clear X', lambda: xfader.clearallbuttons('x')),
45b12307c695 Initial revision
drewp
parents:
diff changeset
22 ('On -> Y', lambda: xfader.grab('y')),
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
23 ('Clear Y', lambda: xfader.clearallbuttons('y'))):
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
24 Button(controlpanel, text=txt, command=cmd).pack(side='top',
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
25 fill='x')
78
0969d8a6729d support for external sliders. fill in ExternalInput with real IO
dmcc
parents: 74
diff changeset
26 # jostle button
74
2dfae9ed1cda jostle feature, use it to shake levels mildly
dmcc
parents: 69
diff changeset
27 Checkbutton(controlpanel, text="Jostle",
2dfae9ed1cda jostle feature, use it to shake levels mildly
dmcc
parents: 69
diff changeset
28 command=jostle_cb).pack(side=TOP, fill=X)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
29
45b12307c695 Initial revision
drewp
parents:
diff changeset
30 class Console:
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
31 def __init__(self,lightboard):
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
32 print "Light 8: Everything's under control"
78
0969d8a6729d support for external sliders. fill in ExternalInput with real IO
dmcc
parents: 74
diff changeset
33 t=toplevelat('console')
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
34 self.frame = Frame(t)
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
35 self.entry=Entry(self.frame)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
36 self.entry.pack(expand=1, fill='x')
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
37 self.entry.bind('<Return>',
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
38 lambda evt: self.execute(evt, self.entry.get()))
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
39 self.frame.pack(fill=BOTH, expand=1)
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
40 self.lightboard=lightboard
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
41
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
42 def execute(self, evt, str):
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
43 if str[0] == '*': # make a new sub from the current levels
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
44 self.lightboard.save_sub(str,self.lightboard.stageassub())
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
45 else:
45b12307c695 Initial revision
drewp
parents:
diff changeset
46 print '>>>', str
45b12307c695 Initial revision
drewp
parents:
diff changeset
47 print eval(str)
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
48 self.frame.focus()
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
49
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
50 class Leveldisplay:
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
51 def __init__(self, parent, channel_levels, num_channels=68):
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
52 frames = (make_frame(parent), make_frame(parent))
16
7dbe8067acea fixed bug with channel levels not displaying
drewp
parents: 12
diff changeset
53 channel_levels[:]=[]
34
411de8b46aef the famous you-are-in-the-process-of-changing-this-light indicator.
dmcc
parents: 32
diff changeset
54 self.number_labels = []
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
55 for channel in range(1, num_channels+1):
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
56
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
57 # frame for this channel
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
58 f = Frame(frames[channel > (num_channels/2)])
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
59 # channel number -- will turn yellow when being altered
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
60 num_lab = Label(f, text=str(channel), width=3, bg='lightPink',
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
61 font=stdfont, padx=0, pady=0, bd=0, height=1)
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
62 num_lab.pack(side='left')
34
411de8b46aef the famous you-are-in-the-process-of-changing-this-light indicator.
dmcc
parents: 32
diff changeset
63 self.number_labels.append(num_lab)
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
64
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
65 # text description of channel
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
66 Label(f, text=Patch.get_channel_name(channel), width=8,
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
67 font=stdfont, anchor='w', padx=0, pady=0, bd=0,
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
68 height=1).pack(side='left')
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
69
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
70 # current level of channel, shows intensity with color
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
71 l = Label(f, width=3, bg='lightBlue', font=stdfont, anchor='e',
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
72 padx=1, pady=0, bd=0, height=1)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
73 l.pack(side='left')
45b12307c695 Initial revision
drewp
parents:
diff changeset
74 colorlabel(l)
45b12307c695 Initial revision
drewp
parents:
diff changeset
75 channel_levels.append(l)
45b12307c695 Initial revision
drewp
parents:
diff changeset
76 f.pack(side='top')
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
77
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
78 self.channel_levels = channel_levels
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
79 # channel_levels is an output - changelevel will use it to access
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 23
diff changeset
80 # these labels
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
81
45b12307c695 Initial revision
drewp
parents:
diff changeset
82 class Subpanels:
69
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
83 def __init__(self, scenesparent, effectsparent, scenes, lightboard,
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
84 scalelevels, Subs, xfader,
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
85 changelevel, subediting, longestname):
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
86
45b12307c695 Initial revision
drewp
parents:
diff changeset
87 sublist = Subs.subs.items()
45b12307c695 Initial revision
drewp
parents:
diff changeset
88 sublist.sort()
45b12307c695 Initial revision
drewp
parents:
diff changeset
89
69
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
90 for p in scenesparent,effectsparent,scenes:
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
91 sw = ScrolledWindow(p)
61
2508c6b7a4e0 scrolled sub panels which work
drewp
parents: 60
diff changeset
92 for but,units in ( (4,-4),(5,4) ):
2508c6b7a4e0 scrolled sub panels which work
drewp
parents: 60
diff changeset
93 sw.window.bind("<ButtonPress-%s>"%but,lambda ev,s=sw.vsb,u=units: s.tk.call('tkScrollByUnits',s,'hv',u))
2508c6b7a4e0 scrolled sub panels which work
drewp
parents: 60
diff changeset
94
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
95 sw.pack(expand=1,fill=BOTH)
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
96 if p==scenesparent:
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
97 scenesparent = sw.window
69
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
98 elif p==effectsparent:
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
99 effectsparent = sw.window
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
100 else:
69
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
101 scenes=sw.window
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
102
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
103 for name, sub in sublist:
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 26
diff changeset
104 # choose one of the sub panels to add to
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
105 if sub.is_effect:
45b12307c695 Initial revision
drewp
parents:
diff changeset
106 parent=effectsparent
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 26
diff changeset
107 side1='bottom'
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
108 side2='left'
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
109 orient1='vert'
32
925382e7cdc8 fixed small bug with orientable
drewp
parents: 30
diff changeset
110 end1=0
925382e7cdc8 fixed small bug with orientable
drewp
parents: 30
diff changeset
111 end2=1
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
112 width1=len(name)
69
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
113 elif name.startswith("*") and name[1].isdigit():
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
114 parent=scenes
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
115 side1='right'
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
116 side2='top'
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
117 orient1='horiz'
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
118 end1=1
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
119 end2=0
ab0be21b549b result of 7.9.2002 rehearsal
dmcc
parents: 68
diff changeset
120 width1=longestname
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
121 else:
45b12307c695 Initial revision
drewp
parents:
diff changeset
122 parent=scenesparent
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 26
diff changeset
123 side1='right'
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
124 side2='top'
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
125 orient1='horiz'
32
925382e7cdc8 fixed small bug with orientable
drewp
parents: 30
diff changeset
126 end1=1
925382e7cdc8 fixed small bug with orientable
drewp
parents: 30
diff changeset
127 end2=0
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
128 width1=longestname
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
129
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 26
diff changeset
130 # make frame that surrounds the whole submaster
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 0
diff changeset
131 f=Frame(parent, bd=1, relief='raised')
48
2ef72bb3a707 finished the re-class of Console so it can make new subs again
drewp
parents: 43
diff changeset
132 f.pack(fill='both',exp=1,side=side2)
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
133
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
134
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
135 # make DoubleVar (there might be one left around from
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
136 # before a refresh)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
137 if name not in scalelevels:
101
a995fd1a8f03 result of 7.12 performance
dmcc
parents: 95
diff changeset
138 # scalelevels[name]=FancyDoubleVar()
a995fd1a8f03 result of 7.12 performance
dmcc
parents: 95
diff changeset
139 scalelevels[name]=DoubleVar()
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
140
45b12307c695 Initial revision
drewp
parents:
diff changeset
141 sub.set_slider_var(scalelevels[name])
45b12307c695 Initial revision
drewp
parents:
diff changeset
142
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
143 scaleopts = {'troughcolor' : 'grey70'}
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
144 if sub.color:
45b12307c695 Initial revision
drewp
parents:
diff changeset
145 scaleopts['troughcolor'] = sub.color
19
6284a812da50 makefile - add link to ../Widgets/FlyingFader.py
dmcc
parents: 16
diff changeset
146
6284a812da50 makefile - add link to ../Widgets/FlyingFader.py
dmcc
parents: 16
diff changeset
147 s = FlyingFader(f, label=str(name), variable=scalelevels[name],
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
148 showvalue=0, length=100,
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
149 width=14, sliderlength=14,
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
150 to=end1,res=.001,from_=end2,bd=1, font=stdfont,
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
151 orient=orient1,
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
152 labelwidth=width1,
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 26
diff changeset
153 **scaleopts)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
154
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
155 # tell subediting what widgets to highlight when it's
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
156 # editing a sub
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
157 for w in (s,s.label,s.vlabel, s.scale):
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
158 subediting.register(subname=name,widget=w)
38
0ce56c4dd355 small ui enhancements
drewp
parents: 34
diff changeset
159
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
160 if not sub.is_effect:
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
161 self.subeditingbuttons(f,side1,sub,name,lightboard,subediting)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
162
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
163 self.axisbuttons(f,s,xfader,stdfont,side1,name)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
164
60
f177a2ff34f5 scrolled sub panels
drewp
parents: 53
diff changeset
165 s.pack(side='left', fill=BOTH, expand=1)
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
166
45b12307c695 Initial revision
drewp
parents:
diff changeset
167 # effects frame?
45b12307c695 Initial revision
drewp
parents:
diff changeset
168 sframe = Frame(f,bd=2,relief='groove')
45b12307c695 Initial revision
drewp
parents:
diff changeset
169 sub.draw_tk(sframe)
45b12307c695 Initial revision
drewp
parents:
diff changeset
170 sframe.pack(side='left',fill='y')
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
171
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
172 def subediting_edit(self,subediting,sub):
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
173 subediting.setsub(sub)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
174
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
175 def subediting_save(self,name,sub,lightboard):
68
57b3c454465a result of 7.8.2002 run-through
dmcc
parents: 67
diff changeset
176 lightboard.save_sub(name,sub.getlevels(),refresh=0)
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
177
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
178 def subeditingbuttons(self,f,side1,sub,name,lightboard,subediting):
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
179 for txt,cmd in (("Edit",lambda subediting=subediting,sub=sub: self.subediting_edit(subediting,sub)),
66
8b6befd8b97e new 'save stage' button which saves a new copy of the sub with whatever's visible on the stage (!)
drewp
parents: 61
diff changeset
180 ("Save",lambda sub=sub,name=name,lightboard=lightboard: self.subediting_save(name,sub,lightboard)),
68
57b3c454465a result of 7.8.2002 run-through
dmcc
parents: 67
diff changeset
181 ("SaveStg",lambda l=lightboard,name=name: l.save_sub(name,l.stageassub(),refresh=1)),
66
8b6befd8b97e new 'save stage' button which saves a new copy of the sub with whatever's visible on the stage (!)
drewp
parents: 61
diff changeset
182 ):
53
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
183 eb = Button(f,text=txt,font=stdfont,padx=0,pady=0,
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
184 bd=1,command=cmd)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
185 eb.pack(side=side1,fill='both',padx=0,pady=0)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
186
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
187 def axisbuttons(self,f,s,xfader,stdfont,side1,name):
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
188 for axis in ('y','x'):
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
189 cvar=IntVar()
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
190 eb_color = ('red', 'green')[axis == 'y']
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
191 cb=Togglebutton(f,text=axis.upper(),variable=cvar,font=stdfont,
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
192 padx=3, pady=0, bd=1, downcolor=eb_color)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
193 cb.pack(side=side1,fill='both', padx=0, pady=0)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
194 s.bind('<Key-%s>'%axis, lambda ev,cb=cb: cb.invoke)
032b2b67bc10 result of July 7th on-site editing
dmcc
parents: 52
diff changeset
195 xfader.registerbutton(name,axis,cvar)