Mercurial > code > home > repos > light9
changeset 509:6e2eb80b02df
start of a rewrite of the CurveRow ui which will let the curve area be a scrolling region
Ignore-this: afd04db4e62a5783e28b0891785f57be
author | drewp@bigasterisk.com |
---|---|
date | Fri, 26 Jun 2009 01:55:03 +0000 |
parents | 20475e83bbc1 |
children | 30973b6dc271 |
files | light9/curve.py |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/curve.py Fri Jun 26 01:54:59 2009 +0000 +++ b/light9/curve.py Fri Jun 26 01:55:03 2009 +0000 @@ -727,6 +727,14 @@ return self.sliders.valueOut("knob%s" % num, value * 127) +class CurveRow(tk.Frame): + """ + one of the repeating curve rows + """ + def __init__(self, master): + tk.Frame(self, master, relief='raised', bd=1) + + class Curvesetview(tk.Frame): def __init__(self, master, curveset, **kw): self.curves = {} # curvename : Curveview @@ -756,7 +764,12 @@ def add_curve(self, name, slider=None, knobEnabled=False): labelFont = "arial 8" - f = tk.Frame(self,relief='raised',bd=1) + f = CurveRow(self) + + + # move the stuff below here into CurveRow class + + f.pack(side='top',fill='both',exp=1) leftside = tk.Frame(f)