This is a custom Paint program built using Pygame and Tkinter, created as my very first Python project in Grade 11 Computer Science.
The program lets users draw on a canvas using different tools, pick colors, use stamps, and even add music—all while learning how graphical user interfaces work behind the scenes.
- 🖊️ Pencil, rectangle, circle, hexagon, spray, and fill tools
- 🎨 Color palette and color preview
- 🧽 Eraser functionality
- 🖼️ Stamps and image uploads
- ⏮️ Undo and Redo history
- 🎵 Music button
- 📂 File upload using Tkinter's file dialog
- 📏 Clean layout with a drawing canvas and tool selection area
- Python 3
- Pygame – for graphics and UI
- Tkinter – for file selection
- Make sure Python is installed: Download Python
- Install Pygame if you haven't already:
pip install pygame- Save or clone this project folder.
- Run the program in your terminal or IDE:
python Paint.pyNote: You should have fullscreenpicture.jpg in the same directory for the background to load properly.
-
How to build a graphical user interface from scratch
-
How to handle events like mouse clicks and keyboard presses
-
How to organize different drawing tools and functionality
-
How to use libraries like pygame and tkinter in real-world projects
Here's what the Paint program looks like while running:
