import tkinter
root=tkinter.Tk()
root.title('111')
root.geometry("600x600")
entry1=tkinter.Entry(root)
entry1.pack()
def getmoney():
global money
money=entry1.get()
a=int(money)
print(a)
if a>0:
print(a)
img_gif = tkinter.PhotoImage(file = 'smile.gif')
label_img = tkinter.Label(root, image = img_gif)
label_img.pack()
else:
img_gif = tkinter.PhotoImage(file = 'cry.gif')
label_img = tkinter.Label(root, image = img_gif)
label_img.pack()
tkinter.Button(root,text="猜價格",command=getmoney).pack()
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/155790.html
上一篇:【圖神經網路】圖卷積網路 GCN
下一篇:Java資料型別
