This project is a Cloth Shop Management System developed using Python's Tkinter library for the GUI, MySQL for the database, and various functionalities for managing cloth inventory including adding, viewing, buying, and removing cloths.
- Add Cloth: Allows users to add new cloths to the inventory by entering details such as name, size, price, and quantity.
- View Cloths: Displays a list of all cloths in the inventory including their ID, name, size, price, and quantity.
- Buy Cloth: Enables users to purchase cloths by specifying the cloth ID and the quantity they wish to buy. Checks for available stock before proceeding with the purchase.
- Remove Cloth: Allows users to remove a cloth from the inventory by entering the cloth ID.
- Python 3.x
- Tkinter library
- MySQL
- mysql-connector-python library
-
Clone the repository to your local machine.
git clone https://github.com/pathakjiop/Cloth-Shop-Mangament-System
-
Install Python if not already installed. You can download it from Python's official website.
-
Install the required dependencies using pip:
pip install mysql-connector-python
-
Set up a MySQL database:
- Install MySQL on your machine if not already installed. You can download it from MySQL's official website.
- Create a new database named
clothing_shop_db
. - Create a table named
cloths
with columnsid
(auto-increment),name
,size
,price
, andquantity
.
-
Modify the database connection details in the script if necessary:
host="localhost", user="your_username", password="your_password", database="clothing_shop_db"
-
Run the script:
python cloth_shop_management.py
- Upon running the script, the GUI of the Cloth Shop Management System will open.
- Navigate through the tabs to perform various operations such as adding, viewing, buying, and removing cloths.
- Input necessary details in the fields and click on corresponding buttons to execute actions.
- View the list of available cloths and their details in the "View Cloths" tab.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
[Atharv Pathak] - Initial work - GitHub Profile