This project is a Vehicle Management System built using Python's Tkinter for the graphical user interface (GUI) and MySQL for data storage. The system allows users to add, display, and store vehicles of different types (Car, Truck, Motorcycle) in a MySQL database.
- Add new vehicles to the system.
- Select vehicle type (Car, Truck, Motorcycle) and provide specific details for each type (e.g., number of doors, load capacity, or engine capacity).
- Store vehicle data in a MySQL database.
- Display a list of vehicles in the application.
- Exit the application with a simple click.
- Python: Programming language used for building the application.
- Tkinter: Python library used for creating the GUI.
- MySQL: Database system used to store vehicle information.
Before running the application, make sure you have the following installed:
- Python 3.x
- Tkinter (comes pre-installed with Python, but if not, you can install it using your package manager).
- MySQL Server
mysql-connector-pythonlibrary for Python (can be installed via pip).
You can install mysql-connector-python by running:
pip install mysql-connector-python- Fill out the required fields:
- License Plate: The unique license plate of the vehicle.
- Make: The brand or manufacturer of the vehicle.
- Model: The model of the vehicle.
- Year: The manufacturing year of the vehicle.
- Choose the vehicle type (Car, Truck, or Motorcycle) from the dropdown menu.
- Based on the selected vehicle type, additional fields will appear:
- Car: Enter the number of doors.
- Truck: Enter the load capacity in kilograms.
- Motorcycle: Enter the engine capacity in cubic centimeters (cc).
- Click the "Add Vehicle" button to save the vehicle to the database and display it in the vehicle list.
- The list of vehicles will be displayed in the Listbox on the main screen. Each vehicle's details (License Plate, Make, Model, Year, and Specific Details) will be shown.
- To exit the application, simply click the "Exit" button.
- Here are some screenshots of the application interface:
- Tkinter for the GUI.
- MySQL for the database.
- Python community for their support and libraries.



