Mercurial > code > home > repos > light9
diff light8/uihelpers.py @ 26:219d6fcbc28d
Reclassification, minor cleanups
Reclassification, minor cleanups
No more global variables in rsn! They are all in a class called
LightBoard.
author | dmcc |
---|---|
date | Sun, 07 Jul 2002 08:33:52 +0000 |
parents | 7adc65771676 |
children | e9d2e7754fd9 |
line wrap: on
line diff
--- a/light8/uihelpers.py Sun Jul 07 08:30:56 2002 +0000 +++ b/light8/uihelpers.py Sun Jul 07 08:33:52 2002 +0000 @@ -7,13 +7,11 @@ f.pack(side='left') return f - def bindkeys(root,key, func): root.bind(key, func) for w in root.winfo_children(): w.bind(key, func) - def toplevelat(x,y,w=None,h=None): tl=Toplevel() if w and h: @@ -22,7 +20,6 @@ tl.wm_geometry("+%d+%d"%(x,y)) return tl - def toggle_slider(s): if s.get() == 0: s.set(100) @@ -33,7 +30,6 @@ def printout(t): print t - def colorlabel(label): """color a label based on its own text""" txt=label['text'] or "0"