This is a simple and visually engaging music player application developed using Python. It demonstrates core Object-Oriented Programming (OOP) concepts while also showcasing GUI development using libraries like tkinter and multimedia handling with pygame.
- Play, pause, forward, and rewind music tracks
- Graphical interface with themed icons and backgrounds
- Playlist management using object-oriented classes
- Easy-to-use and beginner-friendly code
- Python
tkinter- for the graphical user interfacepygame- for audio playback- OOP principles (Classes, Inheritance, Encapsulation)
Music Player Application | |-- Music player.py # Main application file |-- Background/ # Background images |-- Boxes/ # GUI layout elements |-- Icons/ # Playback control icons |-- Songs/ # Sample songs
-
Install the required Python libraries: pip install pygame
-
Run the main script: python "Music player.py"
Make sure the directory structure is preserved, as the app loads files using relative paths.
- Class-based structure: Song and Player components are separated using classes.
- Encapsulation: Data related to each component is kept within its class.
- Inheritance: UI elements or player functions may extend shared base classes.
This project is open source and available under the MIT License.