|
Re: problems with fullscreen, maximized and window size restoration: msg#00096gnome.gtk+.python
On Fri, 18 Feb 2005 12:26:45 +0200, Ionutz Borcoman <borco@xxxxx> wrote: > Hi, > > I have 2 problems: > > * how to restore the fullscreen state, maximized state and the size of > the main window of an application when it is restarted ? > * how to do the above on MS Windows ? > > All I want is for the main window of the application to save its: > > * size when not in maximized/fullscreen/minimized states > * position when not in maximized/fullscreen/minimized states > * its normal/maximized/minimized/fullscreen state > > when it is closed and restore all of the above when it is restarted. Take a look at the following from my app: http://cvs.sourceforge.net/viewcvs.py/grecipe-manager/grm/src/lib/WidgetSaver.py?rev=1.2&view=markup WidgetSaver is set up to allow saving all kinds of states. The WindowSaver subclass should do what you want. Note the gdebug import is my own messaging system -- you can just delete any lines that say "debug" if you want to test this module out. Tom _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Threads and applets (gnome.applet): 00096, Johan Dahlin |
|---|---|
| Next by Date: | interpreter aborts when a thread garbage collects a pygtk object: 00096, Graham Carlyle |
| Previous by Thread: | problems with fullscreen, maximized and window size restorationi: 00096, Ionutz Borcoman |
| Next by Thread: | interpreter aborts when a thread garbage collects a pygtk object: 00096, Graham Carlyle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |