-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDays7_GoldenTriangle_Package.py
More file actions
78 lines (56 loc) · 2.66 KB
/
Days7_GoldenTriangle_Package.py
File metadata and controls
78 lines (56 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from tkinter import*
from tkinter.ttk import Combobox
from tkinter import messagebox
from PIL import ImageTk, Image
import sqlite3
import mysql.connector
import DataAccess
def btnGoldenTriangle1_click():
DataAccess.put_GlobalVal("Golden Triangle 7 Days Tour","Family")
root.destroy()
import Booking_TourPackage
def btnGoldenTriangle2_click():
DataAccess.put_GlobalVal("Amazing Golden Triangle Tour Package","Family")
root.destroy()
import Booking_TourPackage
def btnGoldenTriangle3_click():
DataAccess.put_GlobalVal("Golden Triangle- DELUXE","Family")
root.destroy()
import Booking_TourPackage
def btnAsShowGallery_clik():
DataAccess.put_GlobalVal("Golden Triangle")
root.destroy()
import Gallery
root = Tk()
#getting screen width and height of display
Wwidth= root.winfo_screenwidth()
Wheight= root.winfo_screenheight()
#setting tkinter window size
root.geometry("%dx%d" % (Wwidth, Wheight))
root.title("Admin Console")
root.config(bg="silver")
lbl_heading=Label(root, text="Golden Triangle - 7 Days Family Package",fg="black",bg="light green",font=("Times New Roman",25),relief="ridge",pady=10,border=10).pack(fill='x')
canvas = Canvas(root, width = 3000, height = 3000)
canvas.pack()
img = ImageTk.PhotoImage(Image.open("D:\Anuska\Travel2021\Daily_Travel_Booking\Pictures\Goldentrianglebg.jpg"))
canvas.create_image(0, 0, anchor=NW, image=img)
lstPack= []
lstPack.append("D:\Anuska\Travel2021\Daily_Travel_Booking\Pictures\GoldenTriangle_7DAys_Package.png")
#lstPack.append("Pictures/Darjeeling_3_days.png")
#lstPack.append("Pictures/FP_Rajasthan_15_Days.png")
# Create a photoimage object of the image in the path
ycord=5
p="p100"
for iPack in lstPack:
image1 = Image.open(iPack)
test = ImageTk.PhotoImage(image1)
label1 = Label(image=test)
label1.image = test
# Position image
label1.place(x=225, y=120)
ycord=ycord+150
Button(root, text="Book Now",font=("Times New Roman",13,"bold"), height=2,width=10, bg='light green', fg='black',command=btnGoldenTriangle1_click).place(x=950, y=260)
Button(root, text="Book Now",font=("Times New Roman",13,"bold"), height=2,width=10, bg='light green', fg='black',command=btnGoldenTriangle2_click).place(x=950, y=390)
Button(root, text="Book Now",font=("Times New Roman",13,"bold"), height=2,width=10, bg='light green', fg='black',command=btnGoldenTriangle3_click).place(x=950, y=520)
Button(root, text="Gallery",font=("Times New Roman",13,"bold"), height=2,width=10, bg='light green', fg='black',command=btnAsShowGallery_clik).place(x=950, y=150)
root.mainloop()