Mercurial > code > home > repos > light9
diff light8/panels.py @ 74:2dfae9ed1cda
jostle feature, use it to shake levels mildly
author | dmcc |
---|---|
date | Thu, 11 Jul 2002 15:54:24 +0000 |
parents | ab0be21b549b |
children | 0969d8a6729d |
line wrap: on
line diff
--- a/light8/panels.py Thu Jul 11 15:27:17 2002 +0000 +++ b/light8/panels.py Thu Jul 11 15:54:24 2002 +0000 @@ -11,7 +11,7 @@ monofont = ('Courier', 8) class Controlpanel(Frame): - def __init__(self, parent, xfader, refresh_cb, quit_cb): + def __init__(self, parent, xfader, refresh_cb, quit_cb, jostle_cb): Frame.__init__(self,parent) controlpanel = self for txt,cmd in ( @@ -22,8 +22,11 @@ ('Clear X', lambda: xfader.clearallbuttons('x')), ('On -> Y', lambda: xfader.grab('y')), ('Clear Y', lambda: xfader.clearallbuttons('y'))): + # ('Jostle', jostle_cb)): Button(controlpanel, text=txt, command=cmd).pack(side='top', fill='x') + Checkbutton(controlpanel, text="Jostle", + command=jostle_cb).pack(side=TOP, fill=X) class Console: def __init__(self,lightboard):