import tkinter as tk
window=tk.Tk()
window.title('my window')
window.geometry('500x600')
cv=tk.Canvas(window,bg='blue',height=500,width=500)
image_file=tk.PhotoImage(file='001.gif')
image=cv.create_image(10,10,anchor='nw',image=image_file)
line=cv.create_line(50,50,80,80)
oval=cv.create_oval(50,50,80,80,fill='red')
arv=cv.create_arc(80,80,100,100,start=0,extent=90)
rect1=cv.create_rectangle(20,200,110,310,fill='red',outline='green',width = 5)
rect2=cv.create_rectangle(200,10,210,110,outline = 'red',dash = 9)
rect3=cv.create_rectangle(250,10,300,110,outline = 'red',stipple = 'gray12',fill = 'green')
cv.pack()
def moveit():
cv.move(rect1,1,1)
b1=tk.Button(window,text='moveit',width=15,height=2,command=moveit)
b1.pack()
window.mainloop()