Professional Documents
Culture Documents
Dayanand 11 A4 Bikes
Dayanand 11 A4 Bikes
Spares
Done by
Dayanand R
XI - A4
Acknowledgement
Thank you.
Abstract
CODE
root = Tk()
root.state('zoomed')
bg = Image.open("daynand.jpg")
bg = ImageTk.PhotoImage(bg)
bgcanvas.pack(fill="both", expand=True)
def main_scn():
yamaha_img = ImageTk.PhotoImage(yamaha_img)
yamaha_button.image = yamaha_img
yamaha_button.place(x=250, y=220)
RE_img = Image.open("Re.jpg")
RE_img = ImageTk.PhotoImage(RE_img)
RE_button.image = RE_img
RE_button.place(x=1100, y=220)
bmw_img = Image.open("bmw-4753868_1280.jpg")
bmw_img = ImageTk.PhotoImage(bmw_img)
bmw_button.image = bmw_img
bmw_button.place(x=250, y=650)
kaw_img = Image.open("kawasaki-logo-2021.jpg")
kaw_img = ImageTk.PhotoImage(kaw_img)
kaw_button.image = kaw_img
kaw_button.place(x=1100, y=650)
def destroy_main():
kaw_button.destroy()
bmw_button.destroy()
yamaha_button.destroy()
RE_button.destroy()
bgcanvas.itemconfig(title, text='')
def choosebike():
global choose_bike
def yamaha_bikes():
rx100 = Image.open("new-yamaha-rx-100.jpg")
rx100 = ImageTk.PhotoImage(rx100)
rx100btn.image = rx100
rx100btn.place(x=200, y=400)
r15 = Image.open("New-Yamaha-R15-V3-17.jpg")
r15.resize((735, 393))
r15 = ImageTk.PhotoImage(r15)
r15btn.image = r15
r15btn.place(x=1000, y=400)
def bmw_bikes():
S1000 = Image.open("k2yhofv.jpg")
S1000 = ImageTk.PhotoImage(S1000)
S1000btn.image = S1000
S1000btn.place(x=200, y=400)
R1250 = Image.open("Recall-BMW-R1250GSA-adventure-motorcycle-768x512.jpg")
R1250 = ImageTk.PhotoImage(R1250)
R1250btn.image = R1250
R1250btn.place(x=1000, y=400)
def kaw_bikes():
Z900 = Image.open("MY22-Kawasaki-Z900-priced-at-INR-8.5-lakh-new-colour-
launched_2.jpg")
Z900 = ImageTk.PhotoImage(Z900)
Z900btn.image = Z900
Z900btn.place(x=200, y=400)
ninja = Image.open("c11e049863cade39.jpg")
ninja = ImageTk.PhotoImage(ninja)
ninjabtn = Button(root, image=ninja, width=735, height=393, borderwidth=0,
highlightthickness=0, command = ninja_choose)
ninjabtn.image = ninja
ninjabtn.place(x=1000, y=400)
def RE_bikes():
gt650 = Image.open("side-view.jpg")
gt650 = ImageTk.PhotoImage(gt650)
gt650btn.image = gt650
gt650btn.place(x=200, y=400)
classic = Image.open("specifications-tribute-black.jpg")
classic = ImageTk.PhotoImage(classic)
classicbtn.image = classic
classicbtn.place(x=1000, y=400)
def yama_click():
destroy_main()
choosebike()
yamaha_bikes()
def re_click():
destroy_main()
choosebike()
RE_bikes()
def bmw_click():
destroy_main()
choosebike()
bmw_bikes()
def kaw_click():
destroy_main()
choosebike()
kaw_bikes()
def rx100_choose():
ya_choose_option()
def r15_choose():
ya_choose_option()
def s1000_choose():
bmw_choose_option()
def r1250_choose():
bmw_choose_option()
def gt650_choose():
re_choose_option()
def classic_choose():
re_choose_option
def ninja_choose():
kw_choose_option
def z900_choose():
kw_choose_option
def ya_choose_option():
rx100btn.destroy()
r15btn.destroy()
repair_img = Image.open('repair-tools_427132.png')
repair_img = ImageTk.PhotoImage(repair_img)
repair_btn.image = repair_img
repair_btn.place(x=225, y=300)
mod_img = Image.open('modify.png')
mod_img = ImageTk.PhotoImage(mod_img)
mod_btn.image = mod_img
def bmw_choose_option():
S1000btn.destroy()
R1250btn.destroy()
repair_img = Image.open('repair-tools_427132.png')
repair_img = ImageTk.PhotoImage(repair_img)
repair_btn.image = repair_img
repair_btn.place(x=225, y=300)
mod_img = Image.open('modify.png')
mod_img = ImageTk.PhotoImage(mod_img)
mod_btn.image = mod_img
choose_need()
def kw_choose_option():
Z900btn.destroy()
ninjabtn.destroy()
repair_img = Image.open('repair-tools_427132.png')
repair_img = ImageTk.PhotoImage(repair_img)
repair_btn.image = repair_img
repair_btn.place(x=225, y=300)
mod_img = Image.open('modify.png')
mod_img = ImageTk.PhotoImage(mod_img)
mod_btn.image = mod_img
choose_need()
def re_choose_option():
gt650btn.destroy()
classicbtn.destroy()
repair_img = Image.open('repair-tools_427132.png')
repair_img = ImageTk.PhotoImage(repair_img)
repair_btn.image = repair_img
repair_btn.place(x=225, y=300)
mod_img = Image.open('modify.png')
mod_img = ImageTk.PhotoImage(mod_img)
mod_btn = Button(root, width=512, height=512, borderwidth=0,
highlightthickness=0, image=mod_img)
mod_btn.image = mod_img
choose_need()
def choose_need():
main_scn()
root.mainloop()
Output
Scope for Future Enhancement