[docs] [issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded
Serhiy Storchaka
report at bugs.python.org
Wed May 28 18:16:43 CEST 2014
Serhiy Storchaka added the comment:
All works to me.
>>> import tkinter
>>> b = tkinter.Button()
>>> with open('Lib/test/imghdrdata/python.gif', 'rb') as f: data = f.read()
...
>>> img = tkinter.PhotoImage(data=data)
>>> b['image'] = img
>>> b.pack()
Could you please provide an example which demonstrates the issue?
----------
stage: -> test needed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21580>
_______________________________________
More information about the docs
mailing list