7
7
8
8
root = Tk ()
9
9
10
- root .title ("MP3 Player " )
10
+ root .title ("Reproductor MP3 " )
11
11
root .geometry ("500x400" )
12
12
13
13
# Initialize Pygame
@@ -27,7 +27,7 @@ def play_time():
27
27
28
28
# Reconstruct song with directory structure stuff
29
29
song = playlist_box .get (ACTIVE )
30
- song = f'Python TKinter Build An MP3 Player /audio/{ song } .mp3'
30
+ song = f'C:/mp3 /audio/{ song } .mp3'
31
31
32
32
# Find Current Song Length
33
33
song_mut = MP3 (song )
@@ -80,7 +80,7 @@ def add_many_songs():
80
80
# Loop thru song list and replace directory structure and mp3 from song name
81
81
for song in songs :
82
82
# Strip out directory structure and .mp3 from song title
83
- song = song .replace ("C:/mp3/audio/ " , "" )
83
+ song = song .replace ("c " , "" )
84
84
song = song .replace (".mp3" , "" )
85
85
# Add To End of Playlist
86
86
playlist_box .insert (END , song )
@@ -103,8 +103,7 @@ def play():
103
103
104
104
# Reconstruct song with directory structure stuff
105
105
song = playlist_box .get (ACTIVE )
106
- song = f'Python TKinter Build An MP3 Player/audio/{ song } .mp3'
107
-
106
+ song = f'C:/mp3/audio/{ song } .mp3'
108
107
#Load song with pygame mixer
109
108
pygame .mixer .music .load (song )
110
109
#Play song with pygame mixer
0 commit comments