Message219287
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? |
|
Date |
User |
Action |
Args |
2014-05-28 16:16:43 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gpolo, docs@python, martin.panter |
2014-05-28 16:16:43 | serhiy.storchaka | set | messageid: <1401293803.08.0.0721207945079.issue21580@psf.upfronthosting.co.za> |
2014-05-28 16:16:43 | serhiy.storchaka | link | issue21580 messages |
2014-05-28 16:16:42 | serhiy.storchaka | create | |
|