A minimalist music player application built with Tkinter and pygame.mixer , featuring basic playback controls and a system tray icon.
- Play, Stop, Previous, and Next track controls.
- Scans the directory and subdirectories for MP3 and WAV files.
- Dark theme.
- Displays current song name in the window title.
- System tray icon for hiding/showing and quitting the application.
- Auto-plays next/previous track if currently playing.
- Python 3.6+
- The packages listed in
requirements.txt
-
Clone the repository:
git clone https://github.com/radda-ui/music-player.git cd music-player -
Install the required Python packages:
pip install -r requirements.txt
- Place your music files (MP3, WAV) in the same directory as the script, or in subdirectories.
- Ensure the
icon.pngfile is in the same directory asmusic_player.py. - Run the script from your terminal:
py music_player.py
To create a standalone executable (like .exe on Windows) that doesn't require Python or the installed libraries on the target machine, you can use PyInstaller.
- Install PyInstaller:
pip install pyinstaller
- Navigate to the project directory in your terminal.
- Run the PyInstaller command:
pyinstaller --onefile --noconsole --icon=icon.png music_player.py
- The executable will be found in the
distfolder.