tkinterノート6
1530 ワード
画像(Images)
未完...
gifdir = "D:\MYhtml" #
from tkinter import *
win = Tk()
igm = PhotoImage(file=gifdir + "\my.gif")
Button(win, image=igm).pack()
win.mainloop()
gifdir = "D:\MYhtml"
from tkinter import *
win = Tk()
img = PhotoImage(file=gifdir + "\my.gif")
can = Canvas(win)
can.pack(fill=BOTH)
can.create_image(100, 100, image=img, anchor=NW) # x, y coordinates x,y
win.mainloop()
未完...