Mercurial > code > home > repos > light9
comparison light8/panels.py @ 32:925382e7cdc8
fixed small bug with orientable
author | drewp |
---|---|
date | Sun, 07 Jul 2002 10:52:22 +0000 |
parents | e9d2e7754fd9 |
children | 411de8b46aef |
comparison
equal
deleted
inserted
replaced
31:c79d4df9d982 | 32:925382e7cdc8 |
---|---|
86 # choose one of the sub panels to add to | 86 # choose one of the sub panels to add to |
87 if sub.is_effect: | 87 if sub.is_effect: |
88 parent=effectsparent | 88 parent=effectsparent |
89 side1='bottom' | 89 side1='bottom' |
90 orient='vert' | 90 orient='vert' |
91 end1=0 | |
92 end2=1 | |
91 else: | 93 else: |
92 parent=scenesparent | 94 parent=scenesparent |
93 side1='right' | 95 side1='right' |
94 orient='horiz' | 96 orient='horiz' |
97 end1=1 | |
98 end2=0 | |
95 | 99 |
96 # make frame that surrounds the whole submaster | 100 # make frame that surrounds the whole submaster |
97 f=Frame(parent, bd=1, relief='raised') | 101 f=Frame(parent, bd=1, relief='raised') |
98 f.pack(fill='both',exp=1,side=('top','left')[sub.is_effect]) | 102 f.pack(fill='both',exp=1,side=('top','left')[sub.is_effect]) |
99 | 103 |
108 scaleopts['troughcolor'] = sub.color | 112 scaleopts['troughcolor'] = sub.color |
109 | 113 |
110 s = FlyingFader(f, label=str(name), variable=scalelevels[name], | 114 s = FlyingFader(f, label=str(name), variable=scalelevels[name], |
111 showvalue=0, length=300-17, | 115 showvalue=0, length=300-17, |
112 width=18, sliderlength=18, | 116 width=18, sliderlength=18, |
113 to=1,res=.001,from_=0,bd=0, font=stdfont, | 117 to=end1,res=.001,from_=end2,bd=0, font=stdfont, |
114 orient=orient, | 118 orient=orient, |
115 labelwidth=12, # this should be equal to the longest label name | 119 labelwidth=12, # this should be equal to the longest label name |
116 **scaleopts) | 120 **scaleopts) |
117 | 121 |
118 for axis in ('y','x'): | 122 for axis in ('y','x'): |