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()

Re: [Tkinter-discuss] problem changing font settings for ttk themed widgets on Windows

2012-04-20 Thread willie.lawrence
Hello, In Windows the fonts are tuples, so you can try: ttk.Style().configure('TLabelframe.label', font=("Arial", 14, "bold")) tell if it works -- View this message in context: http://python.6.n6.nabble.com/problem-changing-font-settings-for-ttk-themed-widgets-on-Windows-tp4895707p4902700.html Se

[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