# HG changeset patch # User dmcc # Date 2003-06-14 14:56:44 # Node ID 4136e92829e316adb0379554274a20f82e16d193 # Parent 35e0c467a292927e372a7fc8f12a7a3e8d840c4f toplevelat is smarter now...and even more confusing toplevelat is smarter now...and even more confusing yay legacy names! diff --git a/light8/uihelpers.py b/light8/uihelpers.py --- a/light8/uihelpers.py +++ b/light8/uihelpers.py @@ -41,8 +41,9 @@ def toplevel_savegeometry(tl,name): # dont know why) so we unbind after the first Destroy event tl.unbind("",tl._toplevelat_funcid) -def toplevelat(name): - tl = Toplevel() +def toplevelat(name, existingtoplevel=None): + tl = existingtoplevel or Toplevel() + tl.title(name) try: f=open(".light9-window-geometry-%s" % name.replace(' ','_'))