Mercurial > code > home > repos > light9
diff light8/uihelpers.py @ 68:57b3c454465a
result of 7.8.2002 run-through
author | dmcc |
---|---|
date | Wed, 10 Jul 2002 00:39:14 +0000 |
parents | 0bf7e664f913 |
children | ab0be21b549b |
line wrap: on
line diff
--- a/light8/uihelpers.py Tue Jul 09 09:27:47 2002 +0000 +++ b/light8/uihelpers.py Wed Jul 10 00:39:14 2002 +0000 @@ -5,6 +5,15 @@ from Tix import * from types import StringType +windowlocations = { + 'sub' : '425x738+00+00', + 'console' : '168x24+848+000', + 'leveldisplay' : '144x340+870+400', + 'cuefader' : '314x212+546+741', + 'effect' : '24x24+0963+338', + 'stage' : '823x683+117+030', +} + def make_frame(parent): f = Frame(parent, bd=0) f.pack(side='left') @@ -16,15 +25,15 @@ w.bind(key, func) # def toplevelat(x,y,w=None,h=None): -def toplevelat(name, windowpos): +def toplevelat(name, windowpos=None): tl = Toplevel() - if name in windowpos: - tkname, geom = windowpos[name] - tl.wm_geometry(geom) - windowpos[name] = str(tl), geom - else: - windowpos[name] = str(tl), '+0+0' + 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))