[wxPython-users] Saving information from the GUI to a file
Grzegorz Adam Hankiewicz
ghankiewicz at rastertech.es
Tue Apr 3 01:16:41 PDT 2007
jupan ghe wrote:
> Dear friends,
>
> Now I have started to have something which looks more like an
> application. There are grids, dialogs, etc.
> Now I try to create the save method in order to save the content of my
> GUI and the data that the user has provided in the grids, the settings
> that he has made. The problem is how to do this. Which solution do you
> propose ?
You could go over the widgets whose size you want to keep calling their
GetSize method and storing the result in a configuration file. Later,
when the dialog is constructed and if the file is available, you could
go through those widgets again calling SetSize with the previous values.
May just work as intended.
--
Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/
C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz at rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/>
More information about the wxpython-users
mailing list