Hi i was wondering if anyone could help me, im wanting to when you click in a certain area it changes the background image
thanks
import Tkinter as tk
from Tkinter import*
import urllib
import base64
def click(event):
if event.x > 100 and event.x < 430:
if event.y > 100 and event.y < 450:
#if inbetween here change background image
root = tk.Tk()
root.title('click to change image')
URL = "image1.gif"
a = urllib.urlopen(URL)
raw_input = a.read()
a.close()
b = base64.encodestring(raw_input)
image = PhotoImage(data=b)
label = Label(image=image)
label.pack()
label.bind('<Button-1>', click)
root.mainloop()