1
我有利用Tkinter的GUI如何將圖像組件添加到tkinter GUI?
一個相對簡單的Python腳本代碼看起來像
from Tkinter import *
master = Tk()
def f1():
print "function f1 does stuff, nice.."
title = Label(text="Tweet Grabber 1.1")
title.pack(fill=X)
b = Button(master, text="OK", command=f1)
b.pack(fill=X)
mainloop()
使用Tkinter的是能夠增加圖像的組成部分?
最終在那裏我可以去像img = image(src="path/imagename.filetype")
然後img.pack()
也
是否有可能使用圖像與Tkinter的一個按鈕?
@ L.Clarkson編輯是一個很好的補充,但它應該是一個真正的評論;) – W1ll1amvl 2014-12-23 19:57:22