Mercurial > code > home > repos > light9
changeset 886:30e2ded920cd
window position saving works on KC and on windows that have never saved
Ignore-this: cccfe5aa9ac2331f1866beef323d3d36
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 08 Jun 2013 08:20:03 +0000 |
parents | dc6095cd7601 |
children | 4fe5612db2ed |
files | light9/uihelpers.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/uihelpers.py Sat Jun 08 08:19:36 2013 +0000 +++ b/light9/uihelpers.py Sat Jun 08 08:20:03 2013 +0000 @@ -54,15 +54,15 @@ geo = graph.value(session, L9.windowGeometry) log.debug("setPosFromGraphOnce %s", geo) + setOnce[0] = True + graphSetTime[0] = time.time() if geo is not None and geo != lastSaved[0]: - setOnce[0] = True tl.geometry(geo) lastSaved[0] = geo - graphSetTime[0] = time.time() def savePos(ev): geo = tl.geometry() - if not isinstance(ev.widget, Tkinter.Tk): + if not isinstance(ev.widget, (Tk, Tkinter.Tk)): # I think these are due to internal widget size changes, # not the toplevel changing return