Challenges 133 - 138: More
Tkinter
1127
def clicked():
sel = selectName.get()
mesg = “Hello “ + sel
mlabel[“text”] = mesg
if sel == “Bob”:
photo = PhotoImage(file = “Bob.gif”)
photobox.image = photo
elif sel == “Sue”:
photo = PhotoImage(file = “Sue.gif”)
Do'stlaringiz bilan baham: