Music player using python #Part 1 | Music player using python tutorial video



Note:-
You have to paste the path of image files in the code else it will display error messages.
To know where you have to paste the path of image files please watch tutorial which is present below the source code.
This is just a small part of the MUSIC PLAYER code.You will get the full code in our blog or you can also find it on our Youtube channel.


CODE:-

from tkinter import *
import tkinter as tk

root=tk.Tk()
root.geometry("650x1090")
root.title("Music Player")
root.config(bg='white')

#frame=tk.Frame(root,bg='white')
#frame.grid()

#BUTTON IMAGES
img_play_btn=PhotoImage(file='/storage/emulated/0/pixelLab/20211005_133124.png')
img_stop_btn=PhotoImage(file='/storage/emulated/0/pixelLab/20211005_133042.png')
img_fwd_btn=PhotoImage(file='/storage/emulated/0/pixelLab/20211005_140820.png')
img_back_btn=PhotoImage(file='/storage/emulated/0/pixelLab/20211005_132953.png')
#BUTTONS

shuffle_btn=Button(root,text="sh")
play_btn=Button(root,image=img_play_btn,borderwidth=0)
stop_btn=Button(root,image=img_stop_btn,borderwidth=0)
fwd_btn=Button(root,image=img_fwd_btn,borderwidth=0)
back_btn=Button(root,image=img_back_btn,borderwidth=0)
loop_btn=Button(root,text="l")

shuffle_btn.grid(row=1,column=1,padx=10)
back_btn.grid(row=1,sticky='S',column=2,padx=10)
play_btn.grid(row=1,column=4,padx=10,sticky='S')
stop_btn.grid(row=1,sticky='S',column=5,padx=10)
fwd_btn.grid(row=1,sticky='S',column=6,padx=10)
loop_btn.grid(row=1,sticky='S',column=7,padx=10)



root.mainloop()
#Code ended


Youtube tutorial


"Hope it helped"
Have anything in mind? Let me 
know in the comment section👇



Next Post Previous Post
2 Comments
  • Unknown
    Unknown January 10, 2022 at 6:07 PM

    Can you send all code of music player part 1,2,3

  • Unknown
    Unknown January 10, 2022 at 6:08 PM

    Can you send all codes of music player

Add Comment
comment url