Mercurial > code > home > repos > light9
changeset 32:925382e7cdc8
fixed small bug with orientable
author | drewp |
---|---|
date | Sun, 07 Jul 2002 10:52:22 +0000 |
parents | c79d4df9d982 |
children | d9a0f6c88b39 |
files | light8/panels.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light8/panels.py Sun Jul 07 10:49:25 2002 +0000 +++ b/light8/panels.py Sun Jul 07 10:52:22 2002 +0000 @@ -88,10 +88,14 @@ parent=effectsparent side1='bottom' orient='vert' + end1=0 + end2=1 else: parent=scenesparent side1='right' orient='horiz' + end1=1 + end2=0 # make frame that surrounds the whole submaster f=Frame(parent, bd=1, relief='raised') @@ -110,7 +114,7 @@ s = FlyingFader(f, label=str(name), variable=scalelevels[name], showvalue=0, length=300-17, width=18, sliderlength=18, - to=1,res=.001,from_=0,bd=0, font=stdfont, + to=end1,res=.001,from_=end2,bd=0, font=stdfont, orient=orient, labelwidth=12, # this should be equal to the longest label name **scaleopts)