Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pickling Tkinter widgets - Where does Python stand now?

Reply
Thread Tools

Pickling Tkinter widgets - Where does Python stand now?

 
 
Marc
Guest
Posts: n/a
 
      01-27-2004
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
 
Reply With Quote
 
 
 
 
Rodrigo Benenson
Guest
Posts: n/a
 
      01-27-2004
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" <> escribió en el mensaje
news: 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python strings and {} in Tkinter entry widgets Chris Hare Python 2 08-16-2010 05:11 PM
Tkinter Entry widgets 'font' property (API ?) changed in Python 2.5.2? Atul Python 2 08-09-2008 07:51 AM
stand alone executable using pp doesn't stand alone Plotinus Perl Misc 2 12-17-2004 01:09 AM
Re: Placing entry widgets on a canvas in Tkinter =?ISO-8859-1?Q?Mickel_Gr=F6nroos?= Python 0 06-30-2003 01:02 PM
Placing entry widgets on a canvas in Tkinter =?ISO-8859-1?Q?Mickel_Gr=F6nroos?= Python 0 06-30-2003 12:34 PM



Advertisments