This is an Employee Management System built using Python's Tkinter for the GUI and SQLite for the database. It allows users to add, update, delete, and view employee details.
- Add new employee details (Name, Age, Date of Joining, Email, Gender, Contact Number, Address).
- Update employee details.
- Delete employee records.
- View all employee records in a table format.
Make sure you have the following installed on your system:
- Python 3.x
- Tkinter (comes pre-installed with Python)
- SQLite3 (comes pre-installed with Python)
The project consists of two main files:
main.py: Contains the main GUI code and functionality.db.py: Contains the database class to interact with the SQLite database.
-
Clone the repository or download the files.
-
Make sure both
main.pyanddb.pyare in the same directory. -
Open a terminal or command prompt and navigate to the directory where the files are located.
-
Run the following command to start the application:
python main.py
This will launch the Employee Management System in a Tkinter window.
- Fill in the details for the employee in the input fields.
- Click the Add Details button to insert the employee record into the database.
- The system will display a success message, and the employee details will be visible in the table.
- Click on a row in the table to select the employee record you want to edit.
- Modify the details in the input fields.
- Click the Update Details button to save the changes.
- The system will display a success message, and the updated details will be reflected in the table.
- Select the employee record from the table that you want to delete.
- Click the Delete Details button.
- The system will ask for confirmation before deleting the record.
- Click the Clear Details button to clear all the input fields.
- All employee records are displayed in a table format below the input fields.
- The table will update automatically when records are added, edited, or deleted.
The system uses an SQLite database (Employees.db) to store the employee records. The db.py file contains the Database class, which handles all interactions with the database, including inserting, updating, deleting, and fetching employee records.
Here is an example of the system in action:
This project is licensed under the MIT License - see the LICENSE file for details.
- Tkinter for the GUI
- SQLite3 for the database
- Python 3.x
