Tkinter & persistance

Martin von Loewis loewis at informatik.hu-berlin.de
Mon Mar 13 16:05:55 CET 2000


T.Rafie at ALCATEL.de writes:

> Does anyone of the specialists know a more elegant solution of the
> problem?

You could try to store each object's .config(), as well as its
.pack_info(), and store that. You probably want to modify Tkinter
itself to have that available in each widget.

I don't think anybody has succeeded in pickling a Tkinter widget
hierarchy, so when you do, please make sure to publish your code :-)

If it works for your geometry manager, you'll have to find out how to
have the pickled widget record what geometry manager it was controlled
by...

Regards,
Martin




More information about the Python-list mailing list