Posts

Showing posts from January, 2021

Music Player

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 ( 'e-Lalita Music Player' ) mixer . init () songstatus = StringVar () songstatus . set ( "choosing" ) playlist = Listb...