Building a Python Music Player
Music Player Source Code | Python | dragcoder Music_Player--- from tkinter import * from PIL import Image,ImageTk import os import time import tkinter.messagebox from tkinter import filedialog from pygame import mixer from mutagen.mp3 import MP3 #for song length,#pip install mutagen mixer.init() class musicplayer: def __init__(self,Tk): self.root=Tk Title-- self.root.title('Music_Player') Width and Height-- self.root.geometry('700x400') resizable window off-- self.root.resizable(0,0) Backgroundcolor-- self.root.configure(background='white') openfile--- def Openfile(): global filename filename=filedialog.askopenfilename() Menu- self.menubar=Menu(self.root) self.root.configure(menu=self.menubar) submenu---- self.submenu=Menu(self.menubar,tearoff=0) self.menubar.add_casca
Comments
Post a Comment