changeset 852:d5ba3e20f666

remerge toplevelat changes Ignore-this: 2c8d368635f657541f77657045eb5399
author drewp@bigasterisk.com
date Wed, 05 Jun 2013 23:30:55 +0000
parents df3220bb7a2d
children 3d8a78daeed1
files light9/uihelpers.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/light9/uihelpers.py	Wed Jun 05 23:28:07 2013 +0000
+++ b/light9/uihelpers.py	Wed Jun 05 23:30:55 2013 +0000
@@ -62,12 +62,13 @@
 
     def savePos(ev):
         geo = tl.geometry()
-
-        # todo: need a way to filter out the startup window sizes that
-        # weren't set by the user
-        if geo.startswith("1x1") or geo.startswith(("378x85", "378x86")):
+        if not isinstance(ev.widget, Tkinter.Tk):
+            # I think these are due to internal widget size changes,
+            # not the toplevel changing
             return
-        if geo == lastSaved[0]:
+        # this is trying to not save all the startup automatic window
+        # sizes. I don't have a better plan for this yet.
+        if graphSetTime[0] == 0 or time.time() < graphSetTime[0] + 3:
             return
         if not setOnce[0]:
             return