From: Steven P. <n9...@n9...> - 2004-02-24 04:58:17
|
I've started to implement some of the window size/position saving code. Roger, check it out and let me know if this is what you had in mind. It doesn't save sash position for windows that have it, perhaps this is something that should be added as an optional parameter. Also, some windows (like config dialong, etc) would do better with a suggested size rather than suggested percentage, since it's not square in it's best form. Perhaps a separate percentage for height/width? Hmmmm.... It is doing a much better job on the Mac for sizing the print preview window, however I can't find a way to save any size changes made to the window by the user... The print preview thing goes off on it's own when you do the show() method, and I can't find a hook to determine what the last size/position was before it was closed. I suppose in C++ you could override the destructor, but it doesn't exist in Python, does it? Any other ideas? I'm not coming up with much, so it's time to take a break and step back a little bit. |