diff --git a/light8/Lightboard.py b/light8/Lightboard.py --- a/light8/Lightboard.py +++ b/light8/Lightboard.py @@ -49,7 +49,7 @@ class Lightboard: s.setsubediting(self.subediting) s.pack() - sub_tl = toplevelat(0,0) + sub_tl = toplevelat(0,0,w=440,h=610) effect_tl = toplevelat(462,4) self.subpanels = Subpanels(sub_tl, effect_tl, self, self.scalelevels, diff --git a/light8/panels.py b/light8/panels.py --- a/light8/panels.py +++ b/light8/panels.py @@ -87,8 +87,9 @@ class Subpanels: for p in scenesparent,effectsparent: sw = ScrolledWindow(p) - sw.window.bind("",lambda s=sw.vsb: scrollscrolledwindow(s,-1)) - sw.window.bind("",lambda s=sw.vsb: scrollscrolledwindow(s,1)) + for but,units in ( (4,-4),(5,4) ): + sw.window.bind(""%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 diff --git a/light8/uihelpers.py b/light8/uihelpers.py --- a/light8/uihelpers.py +++ b/light8/uihelpers.py @@ -50,10 +50,6 @@ def eventtoparent(ev,sequence): ev.widget.nametowidget(par).event_generate(sequence,**evdict) #else the event made it all the way to the top, unhandled -def scrollscrolledwindow(widget,amount): - print "scroll",widget,amount - - def colorlabel(label): """color a label based on its own text""" txt=label['text'] or "0"