from Tkinter import *  root = Tk() root.title("SamsungTV")  c = Canvas(width=500,height=600) c.pack()  def onDVD1(event):     c.move(TV2,0,800)     c.move(DVD2,0,-800)     c.move(DVDdisplay,0,-800)     c.move(DVDTEXT1,0,-800)     c.move(DVDTEXT2,0,-800)     c.move(TVtxt2,0,800)     c.move(DVDtxt2,0,-800)  def offDVD1(event):     c.move(TV2,0,-800)     c.move(DVD2,0,800)     c.move(DVDdisplay,0,800)     c.move(DVDTEXT1,0,800)     c.move(DVDTEXT2,0,800)     c.move(TVtxt2,0,-800)     c.move(DVDtxt2,0,800)  def onTV1(event):     c.move(off,0,600)     c.move(onbtn1,0,400)     c.move(onbtn2,0,400)     c.move(btn2,0,800)     c.move(btn4,0,800)     c.move(btnTVon,0,800)     c.itemconfig('tvlight',fill="green")     c.itemconfig('pultlight',fill="green")  def offTV1(event):     c.move(off,0,-600)     c.move(onbtn1,0,-400)     c.move(onbtn2,0,-400)     c.move(btn2,0,-800)     c.move(btn4,0,-800)     c.move(btnTVon,0,-800)     c.itemconfig('tvlight',fill="red")     c.itemconfig('pultlight',fill="red")  def nextchanel1(event):     c.move(sky2,0,-800)     c.move(nextbtn3,0,-800)     c.move(nextbtn4,0,-800)     c.move(grass2,0,-800)     c.move(moon,0,-800)     c.move(moon_effect,0,-800)     c.move(up2,0,-800)     c.move(down2,0,-800)  def nextchanel2(event):     c.move(sky2,0,800)     c.move(nextbtn3,0,800)     c.move(nextbtn4,0,800)     c.move(grass2,0,800)     c.move(moon,0,800)     c.move(moon_effect,0,800)     c.move(up2,0,800)     c.move(down2,0,800)  def vol1(event):     c.itemconfig('vol1',fill="lawngreen")     c.itemconfig('vol2',fill="lawngreen")  def vol2(event):     c.itemconfig('vol1',fill="white")     c.itemconfig('vol2',fill="lawngreen")  def voloff(event):     c.itemconfig('vol1',fill="white")     c.itemconfig('vol2',fill="white")  def openmenu(event):     c.move(MenuDisplay,0,-800)     c.move(MenuTxt,0,-800)     c.move(menubtn2,0,-800)     c.move(EXITbtn,0,-800)     c.move(QUITbtn,0,-800)     c.move(EXITtxt,0,-800)     c.move(QUITtxt,0,-800)     c.move(rateTXT,0,-800)  def closemenu(event):     c.move(MenuDisplay,0,800)     c.move(MenuTxt,0,800)     c.move(menubtn2,0,800)     c.move(EXITbtn,0,800)     c.move(QUITbtn,0,800)     c.move(EXITtxt,0,800)     c.move(QUITtxt,0,800)     c.move(rateTXT,0,800)  def QUIT1(event):     exit()  TV1 = c.create_rectangle(20,20,480,290,fill="grey") TV = c.create_rectangle(30,30,470,260,fill="white") sumsung = c.create_text(250,275,text="SAMSUNG") btnTVoff = c.create_rectangle(200,265,220,285,fill="grey",tags='offTV') btnTVon = c.create_rectangle(200,265,220,285,fill="grey",tags='onTV')  sky1 = c.create_rectangle(30,30,470,260,fill="blue") grass1 = c.create_rectangle(30,170,470,260,fill="yellowgreen") sun = c.create_oval(410,40,460,90,outline="yellow",fill="yellow") sunbeam1 = c.create_line(400,50,350,50,fill="yellow") could1 = c.create_oval(40,40,200,100,fill="white",outline="white") could2 = c.create_oval(220,70,400,130,fill="white",outline="white") sunbeam2 = c.create_line(450,100,450,150,fill="yellow") sunbeam3 = c.create_line(405,90,350,135,fill="yellow") sky2 = c.create_rectangle(30,830,470,1060,fill="mediumblue") grass2 = c.create_rectangle(30,970,470,1060,fill="darkgreen") moon = c.create_oval(410,840,460,890,outline="white",fill="white") moon_effect = c.create_oval(400,840,450,890,outline="mediumblue",fill="mediumblue")  lightTV = c.create_oval(180,270,190,280,fill="red",tag='tvlight') DVDdisplay = c.create_rectangle(30,830,470,1060,fill="dimgrey") DVDTEXT1 = c.create_text(250,900,text="DVD",font="arial 100") DVDTEXT2 = c.create_text(250,1000,text="insert the disc",font="arial 50") volume1 = c.create_rectangle(250,240,255,250,fill="lawngreen",tag='vol2') volume2 = c.create_rectangle(260,230,265,250,fill="white",tag='vol1') volup = c.create_text(240,245,text="-") voldown = c.create_text(275,245,text="+") MenuDisplay = c.create_rectangle(145,840,355,1050,fill="grey") MenuTxt = c.create_text(250,860,text="MENU",font="arial 30") EXITbtn = c.create_rectangle(225,980,275,1000,fill="grey",tags='closemenu') EXITtxt = c.create_text(250,990,text="EXIT",tags='closemenu') QUITbtn = c.create_rectangle(225,1020,275,1040,fill="grey",tags='quit') rateTXT = c.create_text(250,900,text="Like?",font="arial 10") QUITtxt = c.create_text(250,1030,text="QUIT",tags='quit') off = c.create_rectangle(30,30,470,260,fill="black") pult = c.create_rectangle(200,300,300,600,fill="black") lightPult = c.create_oval(245,303,255,313,fill="red",tag='pultlight') offbtn1 = c.create_oval(210,310,235,335,fill="red",tags='offTV') onbtn1 = c.create_oval(210,310,235,335,fill="red",tags='onTV') offbtn2 = c.create_oval(215,315,230,330,fill="red",tags='offTV') onbtn2 = c.create_oval(215,315,230,330,fill="red",tags='onTV') btn1 = c.create_rectangle(217,312,227,317,outline="red",fill="red",tags='offTV') btn2 = c.create_rectangle(217,1112,227,1117,outline="red",fill="red",tags='onTV') btn3 = c.create_line(222,312,222,322,tags='offTV') btn4 = c.create_line(222,1112,222,1122,tags='onTV') nextbtn1 = c.create_rectangle(225,520,275,540,fill="grey",tags='nb1') nextbtn2 = c.create_rectangle(225,570,275,590,fill="grey",tags='nb1') nextbtn3 = c.create_rectangle(225,1320,275,1340,fill="grey",tags='nb2') nextbtn4 = c.create_rectangle(225,1370,275,1390,fill="grey",tags='nb2') volumebtn1 = c.create_rectangle(205,540,225,570,fill="grey",tags='voldown') volumebtn2 = c.create_rectangle(275,540,295,570,fill="grey",tags='volup') voluptxt = c.create_text(287,555,text="+",tags='volup') voldowntxt = c.create_text(217,555,text="-",tags='voldown') up1 = c.create_line(240,538,250,522,260,538,tags='nb1') down1 = c.create_line(240,572,250,588,260,572,tags='nb1') up2 = c.create_line(240,1338,250,1322,260,1338,tags='nb2') down2 = c.create_line(240,1372,250,1388,260,1372,tags='nb2') OKbtn1 = c.create_oval(225,540,275,570,fill="grey") OKtxt1 = c.create_text(250,555,text="OK") exitbtn = c.create_oval(205,520,222,537,fill="grey",tags='closemenu') exittxt = c.create_text(215,510,text="exit",fill="grey") menubtn1 = c.create_oval(278,520,295,537,fill="grey",tags='openmenu') menubtn2 = c.create_oval(278,1320,295,1337,fill="grey") menutxt = c.create_text(288,510,text="menu",fill="grey") TV1 = c.create_rectangle(240,315,265,330,fill="grey",tags='DVDoff') TVtxt1 = c.create_text(252,320,text="TV",tags='DVDoff') TV2 = c.create_rectangle(240,315,265,330,fill="grey") TVtxt2 = c.create_text(252,320,text="TV") DVD1 = c.create_rectangle(265,315,290,330,fill="grey",tags='DVDon') DVDtxt1 = c.create_text(277,320,text="AV",tags='DVDon') DVD2 = c.create_rectangle(265,1115,290,1130,fill="grey") DVDtxt2 = c.create_text(277,1120,text="AV") numbtn1 = c.create_rectangle(205,340,235,380,fill="grey") numtxt1 = c.create_text(220,360,text="1") numbtn2 = c.create_rectangle(235,340,265,380,fill="grey") numtxt2 = c.create_text(250,360,text="2") numbtn3 = c.create_rectangle(265,340,295,380,fill="grey") numtxt3 = c.create_text(280,360,text="3") numbtn4 = c.create_rectangle(205,380,235,420,fill="grey") numtxt4 = c.create_text(220,400,text="4") numbtn5 = c.create_rectangle(235,380,265,420,fill="grey") numtxt5 = c.create_text(250,400,text="5") numbtn6 = c.create_rectangle(265,380,295,420,fill="grey") numtxt6 = c.create_text(280,400,text="6") numbtn7 = c.create_rectangle(205,420,235,460,fill="grey") numtxt7 = c.create_text(220,440,text="7") numbtn8 = c.create_rectangle(235,420,265,460,fill="grey") numtxt8 = c.create_text(250,440,text="8") numbtn9 = c.create_rectangle(265,420,295,460,fill="grey") numtxt9 = c.create_text(280,440,text="9") numbtn0 = c.create_rectangle(235,460,265,500,fill="grey") numtxt0 = c.create_text(250,480,text="0") voicebtn1 = c.create_rectangle(205,460,235,500,fill="grey",tags='voloff') voicetxt1 = c.create_text(220,480,text="<|x",tags='voloff') voicebtn2 = c.create_rectangle(265,460,295,500,fill="grey",tags='volup') voicetxt2 = c.create_text(280,480,text="<|=",tags='volup')  c.tag_bind('offTV','<Button>',func=offTV1) c.tag_bind('onTV','<Button>',func=onTV1) c.tag_bind('nb1','<Button>',func=nextchanel1) c.tag_bind('nb2','<Button>',func=nextchanel2) c.tag_bind('volup','<Button>',func=vol1) c.tag_bind('voldown','<Button>',func=vol2) c.tag_bind('openmenu','<Button>',func=openmenu) c.tag_bind('closemenu','<Button>',func=closemenu) c.tag_bind('DVDon','<Button>',func=onDVD1) c.tag_bind('DVDoff','<Button>',func=offDVD1) c.tag_bind('voloff','<Button>',func=voloff) c.tag_bind('quit','<Button>',func=QUIT1)  root.mainloop()