Many programs I use remember their size (e.g. the size of their top
level window) after they have been closed, so when re-started they can
return to that size.
Is there any way to do this automatically within wxPython? Or should I
write the size somewhere (in the register, into a file, ...) and then
read and apply?
Many programs I use remember their size (e.g. the size of their top
level window) after they have been closed, so when re-started they can
return to that size.
Is there any way to do this automatically within wxPython? Or should I
write the size somewhere (in the register, into a file, ...) and then
read and apply?
Thanks for any suggestion.
It's not officially in the wxPython distribution, but you could use my
PersistentControls library:
It will do what you ask and much more. There is an almost step-by-step
guide on my website and a demo in the library. Let me know if you end
up using it and if you find any issue.
Andrea, tank you for your suggestion: I shall still pratice, but your
PersistentControls library is helping me with this issue and maybe
some others, I'll keep you informed.
Have my gratitude for your great works, you give wxPython a boost up!
···
On 23 Apr, 12:17, Andrea Gavana <andrea.gav...@gmail.com> wrote:
Hi,
On 23 April 2010 11:13, Marco wrote:
> Hi, I'm using wxPython 2.8.9.2 on MSW
> Many programs I use remember their size (e.g. the size of their top
> level window) after they have been closed, so when re-started they can
> return to that size.
> Is there any way to do this automatically within wxPython? Or should I
> write the size somewhere (in the register, into a file, ...) and then
> read and apply?
> Thanks for any suggestion.
It's not officially in the wxPython distribution, but you could use my
PersistentControls library:
It will do what you ask and much more. There is an almost step-by-step
guide on my website and a demo in the library. Let me know if you end
up using it and if you find any issue.