Re: [Tkinter-discuss] Serializing tkinter objects

2012-04-24 Thread willie.lawrence
Hello every body! I think that I can serialize the tkinter objects with this way: A mode is: # --- Encoder.py import base64, shelve # The idea is encode the data file to persist, and than decode to read... pngFile = open("image.png", "rb") content = pngFile.read() content.close()

[Tkinter-discuss] Serializing tkinter objects

2012-04-20 Thread willie.lawrence
Hello everybody, I'm a new user of this List. OBS: forgive my english (I'm a brazilian student) My question: I want save PhotoImage (Tkinter.PhotoImage or/and PIL.tkImage.PhotoImage) objects, but Tkinter classes cannot be serialized, so I thought in get all pixels and serialize this tuple, when in