Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 969ec18

Browse files
authored
added set 4
1 parent 0bc3e11 commit 969ec18

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

‎Week 4/Set-4_hotelform.py‎

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
2+
from tkinter import *
3+
from tkinter import ttk
4+
from tkinter import messagebox
5+
window = Tk()
6+
window.title("Hotel Room Booking Form")
7+
window.geometry('1500x800')
8+
window.configure(background = "white");
9+
def hello():
10+
messagebox.showinfo("Form Report", "Thank You for Submitting the form")
11+
a = Label(window ,text = "Title ").grid(row = 0,column = 0,sticky = "NSEW")
12+
b = Label(window ,text = "Last Name ").grid(row = 1,column = 0,sticky = "NSEW")
13+
c = Label(window ,text = "First Name(s) ").grid(row = 2,column = 0,sticky = "NSEW")
14+
d = Label(window ,text = "Share With ").grid(row = 3,column = 0,sticky = "NSEW")
15+
e = Label(window ,text = "Buisness Number ").grid(row = 4,column = 0,sticky = "NSEW")
16+
f = Label(window ,text = "Mobile Number").grid(row = 5,column = 0,sticky = "NSEW")
17+
g = Label(window ,text = "Email Address ").grid(row = 6,column = 0,sticky = "NSEW")
18+
h = Label(window ,text = "Date of Arrival ").grid(row = 7,column = 0,sticky = "NSEW")
19+
i = Label(window ,text = "Date of Departure ").grid(row = 8,column = 0,sticky = "NSEW")
20+
j = Label(window ,text = "Name on Credit Card ").grid(row = 9,column = 0,sticky = "NSEW")
21+
k = Label(window ,text = "Credit Card Number ").grid(row = 10,column = 0,sticky = "NSEW")
22+
l = Label(window ,text = "Expiry Date ").grid(row = 11,column = 0,sticky = "NSEW")
23+
m = Label(window ,text = "CVV Number ").grid(row = 12,column = 0,sticky = "NSEW")
24+
n = Label(window ,text = "Payment Method ").grid(row = 13,column = 0,sticky = "NSEW")
25+
CheckVar1 = IntVar()
26+
CheckVar2 = IntVar()
27+
C1 = Checkbutton(window, text = "Credit Card ", variable = CheckVar1, \
28+
onvalue = 1, offvalue = 0, height=1, \
29+
width = 20).grid(row = 13, column = 1 , sticky = "NSEW")
30+
C2 = Checkbutton(window, text = "Debit Bank Transfer ", variable = CheckVar2, \
31+
onvalue = 1, offvalue = 0, height=1, \
32+
width = 20).grid(row = 13, column = 2 , sticky = "NSEW")
33+
p = Label(window ,text = "Negotiated Rates : ").grid(row = 14,column = 0 , sticky = "NSEW")
34+
g = Label(window ,text = "Deluxe Room Single ").grid(row = 15,column = 0 , sticky = "NSEW")
35+
g1 = Label(window ,text = " R1700 ").grid(row = 15,column = 1 , sticky = "NSEW")
36+
h = Label(window ,text = "Deluxe Room Double ").grid(row = 15,column = 2 , sticky = "NSEW")
37+
h1 = Label(window ,text = " R1700 ").grid(row = 15,column = 3 , sticky = "NSEW")
38+
g = Label(window ,text = "Suites Room Single ").grid(row = 16,column = 0 , sticky = "NSEW")
39+
g1 = Label(window ,text = " R1700 ").grid(row = 16,column = 1 , sticky = "NSEW")
40+
h = Label(window ,text = "Suites Room Double ").grid(row = 16,column = 2,sticky = "NSEW")
41+
h1 = Label(window ,text = " R1700 ").grid(row = 16,column = 3 ,sticky = "NSEW")
42+
p1 = Label(window ,text = "Room Preference : ").grid(row = 17,column = 0,sticky = "NSEW")
43+
CheckVar11 = IntVar()
44+
CheckVar22 = IntVar()
45+
C1 = Checkbutton(window, text = "King Bed ", variable = CheckVar11, \
46+
onvalue = 1, offvalue = 0, height=1, \
47+
width = 20).grid(row = 18, column = 0)
48+
C2 = Checkbutton(window, text = "Twin - Two Single Beds ", variable = CheckVar22, \
49+
onvalue = 1, offvalue = 0, height=1, \
50+
width = 20).grid(row = 18, column = 1)
51+
line1 = Label(window, text="The above rates are quoted per room, per night. The rates include breakfast, 14% vat, and Excludes 1% Tourism Levy\n and a voluntary R10 donation to the Arabella Community Trust that will be levies onto your account.", bg="white")
52+
line2 = Label(window, text="Total amount payable ZAR_____ x______ nights = ZAR______ due to Arabella\n Hotel and Spa", bg="white")
53+
line3 = Label(window, text="Credit Card will be charged on receipt of this form and details will also be used to settle all incidentals not settle on\n departure. A copy of the final folio will be sent to you should there be any unsettled charges.", bg="white")
54+
line4 = Label(window, text="In order to qualify for the above rates, your booking needs to be made on or before 15th January 2016", bg="white")
55+
line5 = Label(window, text="Terms and conditions can be found on the next page.", bg="white")
56+
line6 = Label(window, text="The rate is valid for seven days before and after the conference dates. Check in time is 14:00 & check out time is 11:00", bg="white")
57+
line7 = Label(window, text="By your signature hereto, you are accepting all terms and conditions specified on this form and confirm that all information\n given is current and accurate.", bg="white")
58+
line1.grid(row=20, column=0,columnspan=4)
59+
line2.grid(row=21, column=0,columnspan=4)
60+
line3.grid(row=22, column=0,columnspan=4)
61+
line4.grid(row=23, column=0,columnspan=4)
62+
line5.grid(row=24, column=0,columnspan=4)
63+
line6.grid(row=25, column=0,columnspan=4)
64+
line7.grid(row=26, column=0,columnspan=4)
65+
p1 = Label(window ,text = "Signature : ").grid(row = 27,column = 0,sticky = "NSEW")
66+
p1 = Label(window ,text = "Print Name: ").grid(row = 27,column = 2,sticky = "NSEW")
67+
p1 = Label(window ,text = "Date : ").grid(row = 28,column = 0,sticky = "NSEW")
68+
a1 = Entry(window).grid(row = 0,column = 1)
69+
b1 = Entry(window).grid(row = 1,column = 1)
70+
c1 = Entry(window).grid(row = 2,column = 1)
71+
d1 = Entry(window).grid(row = 3,column = 1)
72+
e1 = Entry(window).grid(row = 4,column = 1)
73+
f1 = Entry(window).grid(row = 5,column = 1)
74+
g1 = Entry(window).grid(row = 6,column = 1)
75+
h1 = Entry(window).grid(row = 7,column = 1)
76+
i1 = Entry(window).grid(row = 8,column = 1)
77+
j1 = Entry(window).grid(row = 9,column = 1)
78+
k1 = Entry(window).grid(row = 10,column = 1)
79+
l1 = Entry(window).grid(row = 11,column = 1)
80+
m1 = Entry(window).grid(row = 12,column = 1)
81+
p101 = Entry(window).grid(row = 27,column = 1,sticky = "NSEW")
82+
p102 = Entry(window).grid(row = 27,column = 3,sticky = "NSEW")
83+
p103 = Entry(window).grid(row = 28,column = 1,sticky = "NSEW")
84+
btn = ttk.Button(window ,text="Submit",command = hello).grid(row=30,column=2)
85+
window.mainloop()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /