Mercurial > code > home > repos > light9
diff light8/uihelpers.py @ 78:0969d8a6729d
support for external sliders. fill in ExternalInput with real IO
author | dmcc |
---|---|
date | Fri, 12 Jul 2002 10:05:57 +0000 |
parents | ab0be21b549b |
children | 09b3bf8a9201 |
line wrap: on
line diff
--- a/light8/uihelpers.py Fri Jul 12 10:02:31 2002 +0000 +++ b/light8/uihelpers.py Fri Jul 12 10:05:57 2002 +0000 @@ -26,21 +26,12 @@ for w in root.winfo_children(): w.bind(key, func) -# def toplevelat(x,y,w=None,h=None): -def toplevelat(name, windowpos=None): +def toplevelat(name): tl = Toplevel() - tl.wm_geometry(windowlocations[name]) + if name in windowlocations: + tl.wm_geometry(windowlocations[name]) - # if name in windowpos: - # tkname, geom = windowpos[name] - # tl.wm_geometry(geom) - # windowpos[name] = str(tl), geom - - # if w and h: - # tl.wm_geometry("%dx%d+%d+%d" % (w,h,x,y)) - # else: - # tl.wm_geometry("+%d+%d" % (x,y)) return tl def toggle_slider(s):