else/Logogame/test.py
Voussoir 9d81c4ff7b else
Continued working on logogame
2015-03-14 23:28:17 -07:00

18 lines
281 B
Python

import tkinter
from PIL import Image
from PIL import ImageTk
t=tkinter.Tk()
def png(filename):
im = Image.open('images/%s.png' % filename)
im = ImageTk.PhotoImage(im)
return im
im = png('jarate')
l = tkinter.Label(t, text="heyo", image=im)
l.im = im
l.pack()
t.mainloop()