The Love Calculator is a fun and interactive desktop application built with Python and the Tkinter library. It lets users input two names and calculates a "love score" based on the occurrences of specific letters. Depending on the score, a unique message is displayed to show the compatibility between the two names.
- Python 3.x must be installed on your system.
- Pillow library for handling images.
- Clone or download the repository to your local machine.
- Install the
Pillow
library by running:pip install pillow ## How It Works
- Enter two names in the provided input fields.
The application calculates the score by:
- Counting the occurrences of the letters in "TRUE" and "LOVE" within the combined names.
- Creating a total score from these counts.
Based on the score, the following messages are shown:
- Above 80: "π You are a match made in heaven!"
- 50 - 80: "π You have a strong connection!"
- 30 - 49: "π« There's some potential here!"
- Below 30: "π Maybe better as friends!"
- Background Image: Replace
lovecalculator.png
with your own image for a personalized background. - Fonts and Colors: Modify the
font
,fg
, andbg
parameters in theLabel
andEntry
widgets for custom styles.
- Tkinter: Used for building the user interface.
- Pillow: Utilized for image handling and background display.