Mercurial > code > home > repos > light9
diff light8/panels.py @ 61:2508c6b7a4e0
scrolled sub panels which work
author | drewp |
---|---|
date | Tue, 09 Jul 2002 07:52:48 +0000 |
parents | f177a2ff34f5 |
children | 8b6befd8b97e |
line wrap: on
line diff
--- a/light8/panels.py Tue Jul 09 07:36:45 2002 +0000 +++ b/light8/panels.py Tue Jul 09 07:52:48 2002 +0000 @@ -87,8 +87,9 @@ for p in scenesparent,effectsparent: sw = ScrolledWindow(p) - sw.window.bind("<ButtonPress-4>",lambda s=sw.vsb: scrollscrolledwindow(s,-1)) - sw.window.bind("<ButtonPress-5>",lambda s=sw.vsb: scrollscrolledwindow(s,1)) + for but,units in ( (4,-4),(5,4) ): + sw.window.bind("<ButtonPress-%s>"%but,lambda ev,s=sw.vsb,u=units: s.tk.call('tkScrollByUnits',s,'hv',u)) + sw.pack(expand=1,fill=BOTH) if p==scenesparent: scenesparent = sw.window