comparison light8/uihelpers.py @ 90:d34a4956417a

rsn has a separate thread that receives rlslider connections from a potserver.py process, rsn has a separate thread that receives rlslider connections from a potserver.py process, and they work
author drewp
date Sat, 13 Jul 2002 02:57:27 +0000
parents 09b3bf8a9201
children d5deeed83228
comparison
equal deleted inserted replaced
89:0459cecf8145 90:d34a4956417a
27 w.bind(key, func) 27 w.bind(key, func)
28 28
29 29
30 def toplevel_savegeometry(tl,name): 30 def toplevel_savegeometry(tl,name):
31 try: 31 try:
32 f=open(".light9-window-geometry-%s" % name.replace(' ','_'),'w') 32 geo = tl.geometry()
33 f.write(tl.geometry()) 33 if not geo.startswith("1x1"):
34 f=open(".light9-window-geometry-%s" % name.replace(' ','_'),'w')
35 f.write(tl.geometry())
36 # else the window never got mapped
34 except: 37 except:
35 # it's ok if there's no saved geometry 38 # it's ok if there's no saved geometry
36 pass 39 pass
37 40
38 # this would get called repeatedly for each child of the window (i 41 # this would get called repeatedly for each child of the window (i