Professional Documents
Culture Documents
PROJECT REPORT
BACHELOR OF TECHNOLOGY
( CSE )
SUBMITTED BY
01 OBJECTIVE:- 1
02 INTRODUCTION:- 2
03 HARDWARE /SOFTWARE 3
REQUIREMENTS
04 FLOW CHART:- 4
05 5,6
SOURCE CODE
06 OUTPUT SNAPSHOT 7
06 CONCLUSION 8
OBJECTIVE:-
The main objective of this project is to design cross platform media player using python
and tkinter .
The music player which we have created will be capable of playing all the songs
selected by you and put in its folder or playlist to play.
It provide very easy and efficient way of working where user don’t have to do much.
INTRODUCTION:-
This is a Project Report on “Music Player Using Python”. During the making or
Development of the project we explored new ideas and libraries in python for
implementing GUI based Application.
The Project is the output of our planning, schedule, programming skills and the hard
work, and this report reflects our steps taken at various levels of programming
skill ,planning and schedule.
We have learn a lot during this project in our coding skills and deep concept related to
these kind of projects .
Our project is “MUSIC PLAYER USING PYTHON”. This is a python based application
which enables people to play their local songs.
HARDWARE AND SOFTWARE REQUIREMENTS
Hardware:
Software:
• Laptop or PC
• VS Code
FLOW CHART:-
SOURCE CODE::-
import pygame
from pygame import mixer
from tkinter import *
import os
def playsong():
currentsong=playlist.get(ACTIVE)
print(currentsong)
mixer.music.load(currentsong)
songstatus.set("Playing")
mixer.music.play()
def pausesong():
songstatus.set("Paused")
mixer.music.pause()
def stopsong():
songstatus.set("Stopped")
mixer.music.stop()
def resumesong():
songstatus.set("Resuming")
mixer.music.unpause()
root=Tk()
root.title('Music player project')
mixer.init()
songstatus=StringVar()
songstatus.set("choosing")
#playlist---------------
playlist=Listbox(root,selectmode=SINGLE,bg="DodgerBlue2",fg="white",font=('arial',15),
width=40)
playlist.grid(columnspan=5)
os.chdir(r'C:\Users\BOSS\Desktop\MyPlaylist')
songs=os.listdir()
for s in songs:
playlist.insert(END,s)
playbtn=Button(root,text="play",command=playsong)
playbtn.config(font=('arial',20),bg="DodgerBlue2",fg="white",padx=7,pady=7)
playbtn.grid(row=1,column=0)
pausebtn=Button(root,text="Pause",command=pausesong)
pausebtn.config(font=('arial',20),bg="DodgerBlue2",fg="white",padx=7,pady=7)
pausebtn.grid(row=1,column=1)
stopbtn=Button(root,text="Stop",command=stopsong)
stopbtn.config(font=('arial',20),bg="DodgerBlue2",fg="white",padx=7,pady=7)
stopbtn.grid(row=1,column=2)
Resumebtn=Button(root,text="Resume",command=resumesong)
Resumebtn.config(font=('arial',20),bg="DodgerBlue2",fg="white",padx=7,pady=7)
Resumebtn.grid(row=1,column=3)
mainloop()
OUTPUT SNAPSHOT:-
CONCLUSION:-
We have successfully created a Music Player in python using Graphical user Interface(GUI).
We have learned about the Tkinter module and the function that module provides as well as the
pygame module.
There you have it! We have now created our own python mp3 music player, using only select
resources on our own computer! Enjoy it a lot, and edit it if you would like because this is the
one project that has a lot of potential to grow and based on requirements you can enhance it.
REFERENCES
> https://tkdocs.com/tutorial/styles.html
> https://en.wikipedia.org/wiki/Pygame
> https://pypi.org/project/mutagen
> https://www.geeksforgeeks.org/multithreading-python-set
> https://codemy.com/build-mp3-player-python-tkinter-guiapps/
> https://techvidvan.com/tutorials/python-create-mp3-musicplayer/
> projectgurukul.org