forked from JYunth/hotel-management-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.py
48 lines (36 loc) · 2.44 KB
/
about.py
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
from tkinter import *
import main
class About:
def __init__(self, root):
self.root = root
pad = 3
self.root.title("About the program")
self.root.iconbitmap("hms.ico")
self.root.geometry("{0}x{1}+0+0".format(self.root.winfo_screenwidth() - pad, self.root.winfo_screenheight() - pad))
# create mainframe to add message
self.top = Frame(self.root)
self.top.pack(side="top")
self.bottom = Frame(self.root)
self.bottom.pack(side="top")
self.info_frame = Frame(self.root)
self.info_frame.pack(side="top")
#title
self.About = Label(self.top, font=('Bookman Old Style', 50, 'bold'), text = "About the program:", fg = '#330000', anchor = 'center')
self.About.grid(row = 0, column = 0, columnspan = 2)
#Description
self.desc1 = Label(self.top, font = ('Bookman Old Style', 20), text = 'HMS is a program that keeps track of all your occupants, 24/7.', fg = '#330000', anchor = 'w')
self.desc2 = Label(self.top, font = ("Bookman Old Style", 20), text = 'With SQLite integration, all your information is stored in a ', fg = '#330000', anchor = 'w')
self.desc3 = Label(self.top, font = ("Bookman Old Style", 20), text= 'SQLite database file (.db), so your information is not lost when you close the program.', fg = '#330000', anchor = 'w')
self.desc4 = Label(self.top, font = ("Bookman Old Style", 20), text = 'Seamlessly keep track of check-ins and check-outs from your hotel.', fg = '#330000', anchor = 'w')
self.desc5 = Label(self.top, font = ("Bookman Old Style", 20), text = 'View all your occupants, the room they occupy and their details with just one click.', fg = '#330000', anchor = 'w')
self.desc6 = Label(self.top, font = ("Bookman Old Style", 20), text = 'Light, fast and resourceful. The perfect companion for the urban hotel owner.', fg = '#330000', anchor = 'w')
self.desc1.grid(row = 1, column = 0, columnspan = 2, pady = 10)
self.desc2.grid(row = 2, column = 0, columnspan = 2)
self.desc3.grid(row = 3, column = 0, columnspan = 2, pady = (0, 10))
self.desc4.grid(row = 4, column = 0, columnspan = 2, pady = (0, 10))
self.desc5.grid(row = 5, column = 0, columnspan = 2, pady = (0, 10))
self.desc6.grid(row = 6, column = 0, columnspan = 2, pady = (0, 10))
def about_ui():
root = Tk()
application = About(root)
root.mainloop()