You are on page 1of 7

from tkinter import *

from turtle import color

class Emp_Data:
name =""
odc =""
days =""
seat =""

e1 = Emp_Data

def btn_clicked():
print("Button Clicked")

def workmonday():
e1.days = "Monday"
print("selected monday")

def worktuesday():
e1.days = "Tuesday"
print("selected tuesday")

def worktwednesday():
e1.days = "Wednesday"
print("selected wednesday")

def workthursday():
e1.days = "thursday"
print("selected thursday")

def workfriday():
e1.days = "friday"
print("selected friday")

def SDB1():
e1.odc="1"
print("selected SDB1")

def SDB2():
e1.odc="2"
print("selected SDB2")

def SDB3():
e1.odc="3"
print("selected SDB3")

def seat1():
e1.seat = "1"
print("selected seat1")

def seat2():
e1.seat = "2"
print("selected seat2")

def seat3():
e1.seat = "3"
print("selected seat3")

def seat4():
e1.seat = "4"
print("selected seat4")

def seat5():
e1.seat = "5"
print("selected seat5")

def seat6():
e1.seat = "6"
print("selected seat6")

def seat7():
e1.seat = "7"
print("selected seat7")

def seat8():
e1.seat = "8"
print("selected seat8")

def seat9():
e1.seat = "9"
print("selected seat9")

def seat10():
e1.seat = "10"
print("selected seat10")

window = Tk()

window.geometry("1440x1024")
window.configure(bg = "#ffffff")
canvas = Canvas(
window,
bg = "#ffffff",
height = 1024,
width = 1440,
bd = 0,
highlightthickness = 0,
relief = "ridge")
canvas.place(x = 0, y = 0)

img0 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img0.png")
b0 = Button(
image = img0,
borderwidth = 0,
highlightthickness = 0,
command = workmonday,
relief = "flat")

b0.place(
x = 295, y = 73,
width = 109,
height = 98)

img1 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img1.png")
b1 = Button(
image = img1,
borderwidth = 0,
highlightthickness = 0,
command = worktuesday,
relief = "flat")

b1.place(
x = 446, y = 72,
width = 108,
height = 99)

img2 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img2.png")
b2 = Button(
image = img2,
borderwidth = 0,
highlightthickness = 0,
command = worktwednesday,
relief = "flat")

b2.place(
x = 596, y = 69,
width = 110,
height = 99)

img3 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img3.png")
b3 = Button(
image = img3,
borderwidth = 0,
highlightthickness = 0,
command = workthursday,
relief = "flat")

b3.place(
x = 754, y = 72,
width = 115,
height = 99)

img4 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img4.png")
b4 = Button(
image = img4,
borderwidth = 0,
highlightthickness = 0,
command = workfriday,
relief = "flat")

b4.place(
x = 926, y = 73,
width = 118,
height = 99)

background_img = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/
background.png")
background = canvas.create_image(
625.0, 322.5,
image=background_img)
img5 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img5.png")
b5 = Button(
image = img5,
borderwidth = 0,
highlightthickness = 0,
command = SDB1,
relief = "flat")

b5.place(
x = 446, y = 214,
width = 171,
height = 95)

img6 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img6.png")
b6 = Button(
image = img6,
borderwidth = 0,
highlightthickness = 0,
command = SDB2,
relief = "flat")

b6.place(
x = 653, y = 214,
width = 163,
height = 94)

img7 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img7.png")
b7 = Button(
image = img7,
borderwidth = 0,
highlightthickness = 0,
command = SDB3,
relief = "flat")

b7.place(
x = 861, y = 216,
width = 172,
height = 94)

img8 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img8.png")
b8 = Button(
image = img8,
borderwidth = 0,
highlightthickness = 0,
command = seat1,
relief = "flat")

b8.place(
x = 76, y = 426,
width = 76,
height = 68)

img9 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img9.png")
b9 = Button(
image = img9,
borderwidth = 0,
highlightthickness = 0,
command = seat2,
relief = "flat")

b9.place(
x = 519, y = 424,
width = 70,
height = 71)

img10 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img10.png")
b10 = Button(
image = img10,
borderwidth = 0,
highlightthickness = 0,
command = seat4,
relief = "flat")

b10.place(
x = 724, y = 423,
width = 81,
height = 72)

img11 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img11.png")
b11 = Button(
image = img11,
borderwidth = 0,
highlightthickness = 0,
command = seat5,
relief = "flat")

b11.place(
x = 977, y = 421,
width = 84,
height = 74)

img12 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img12.png")
b12 = Button(
image = img12,
borderwidth = 0,
highlightthickness = 0,
command = seat6,
relief = "flat")

b12.place(
x = 1223, y = 417,
width = 86,
height = 75)

img13 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img13.png")
b13 = Button(
image = img13,
borderwidth = 0,
highlightthickness = 0,
command = seat7,
relief = "flat")

b13.place(
x = 289, y = 529,
width = 73,
height = 76)

img14 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img14.png")
b14 = Button(
image = img14,
borderwidth = 0,
highlightthickness = 0,
command = seat8,
relief = "flat")

b14.place(
x = 517, y = 529,
width = 74,
height = 75)

img15 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img15.png")
b15 = Button(
image = img15,
borderwidth = 0,
highlightthickness = 0,
command = seat9,
relief = "flat")

b15.place(
x = 731, y = 529,
width = 72,
height = 72)

img16 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img16.png")
b16 = Button(
image = img16,
borderwidth = 0,
highlightthickness = 0,
command = seat10,
relief = "flat")

b16.place(
x = 973, y = 534,
width = 84,
height = 75)

img17 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img17.png")
b17 = Button(
image = img17,
borderwidth = 0,
highlightthickness = 0,
command = btn_clicked,
relief = "flat")
b17.place(
x = 607, y = 643,
width = 223,
height = 61)

img18 = PhotoImage(file =
f"C:/Users/mounish/OneDrive/Desktop/golti/Proxlight_Designer_Export/img18.png")
b18 = Button(
image = img18,
borderwidth = 0,
highlightthickness = 0,
command = seat2,
relief = "flat")

b18.place(
x = 285, y = 429,
width = 76,
height = 66)

window.resizable(False, False)
window.mainloop()

You might also like