By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,206 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,206 IT Pros & Developers. It's quick & easy.

Pickling Tkinter widgets - Where does Python stand now?

P: n/a
Hi all,

After some research I've decided that my previous question (Confusing
problem between Tkinter.Intvar...) was headed in the wrong direction.
Partly because I think I have a greater understanding of what was
happening, and partly because pickling Tkinter widgets is an issue
that seems to have been touched on over the years but never really
acted on.

Postings back to '96 have talked about the need to pickle Tk widgets.
People have asked about it at various points, and no one has ever
really even come up with a workaround (that I could find).

So I am wondering a couple of things: Are there any plans in the
future to alter Tkinter so that it will be Pickle compliant in the
main release? Has anyone ever found a workaround (whether through
altering the main Tkinter.py file or other) that will allow pickling
of Tk widgets.

Thanks,
Marc
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
are not there Pickle versions that allow you to pickle python code, or
simply pickle classes ?
That could be use to pickle the code that create the widget.
Thus the pickling would pickle the creation code and the unpickling would
reobtain it and instanciate the code class.
That is a strategy but I'm not sure if it is what you need...

rodrigob.

"Marc" <mn******@airmail.net> escribió en el mensaje
news:43**************************@posting.google.c om...
Hi all,

After some research I've decided that my previous question (Confusing
problem between Tkinter.Intvar...) was headed in the wrong direction.
Partly because I think I have a greater understanding of what was
happening, and partly because pickling Tkinter widgets is an issue
that seems to have been touched on over the years but never really
acted on.

Postings back to '96 have talked about the need to pickle Tk widgets.
People have asked about it at various points, and no one has ever
really even come up with a workaround (that I could find).

So I am wondering a couple of things: Are there any plans in the
future to alter Tkinter so that it will be Pickle compliant in the
main release? Has anyone ever found a workaround (whether through
altering the main Tkinter.py file or other) that will allow pickling
of Tk widgets.

Thanks,
Marc

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.