Jul-30-2020, 04:04 PM
# Play selected song
def play():
song = song_box.get(ACTIVE)
song = f'serverlow@serverlow:~/music/audio/{song}.mp3'
pygame.mixer.music.load(song )
pygame.mixer.music.play(loops=0)
-------------------------------------------------------
serverlow@serverlow:~/music$ python3 music.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
return self.func(*args)
File "music.py", line 31, in play
pygame.mixer.music.load(song )
pygame.error: Couldn't open 'serverlow@serverlow:~/music/audio//home/serverlow/music/pm3/___ Ben How - ______4 ______.mp3'
def play():
song = song_box.get(ACTIVE)
song = f'serverlow@serverlow:~/music/audio/{song}.mp3'
pygame.mixer.music.load(song )
pygame.mixer.music.play(loops=0)
-------------------------------------------------------
serverlow@serverlow:~/music$ python3 music.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
return self.func(*args)
File "music.py", line 31, in play
pygame.mixer.music.load(song )
pygame.error: Couldn't open 'serverlow@serverlow:~/music/audio//home/serverlow/music/pm3/___ Ben How - ______4 ______.mp3'