In this project we are going to create a Hotel Booking System using Python with Tkinter GUI
As backend, we have used Sqlite3
Using Pillow module we are able to add Images.
To install Pillow follow the given command billow
pip install Pillow
The list of Library has been given billow
- Tkinter [Used to Design GUI]
- Sqlite3 [Used to backend data collection]
- Pillow [Used to add Images into the GUI]
- Random [Used to generate random numbers]
- DateTime [Used to get Current Time and Time Formatting]
You can also convert this program in to exe file. You just neet to install Babel
for that
To install Babel
follow the given command billow
pip install Babel
And also follow the given code to all your project files like this
from babel.numbers import *
from babel.dates import *
Babel
is used to fix images in exe
version of your code.
You also need Pyinstaller
. This library converts the .py
scripts to exe
.
To install Pyinstaller
follow the given command billow.
pip install pyinstaller
We have added a requirement.txt
file with this repo. You can also install all requirements from this file.
You just need to open you native terminal or any terminal and type in the following commands
pip install -r requirement.txt
You are all set to go. Open your native terminal and run the following command to convert your .py
script into exe
file.
pyinstaller --onefile -w --hiddenimport=babel.numbers filename.py
# in this project the filename.py is hotel.py
To get more interesting projects follow our GitHub page at Here
To get more interesting projects follow our Bitbucket page at Here