You need double backslashes:
From:
song = path + '\music\\' + selected_song
To:
song = path + '\\music\\' + selected_song
Or:
song = f"{path}\\{music}\\{selected_song}"
More Related Contents:
- Embedding a Pygame window into a Tkinter or WxPython frame
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- How do I include files with pyinstaller?
- How to install python application with tkcalendar module by pyinstaller?
- Pyinstaller with pygame
- How to start threads at the same time in Python [duplicate]
- Tkinter understanding mainloop
- Pygame unresponsive display [duplicate]
- Is there any other way to load a resource like an image, sound, or font into Pygame? [closed]
- Does PyGame do 3d?
- Why does it say that module pygame has no init member?
- How to center a window on the screen in Tkinter?
- Display fullscreen mode on Tkinter
- How can I show explosion image when collision happens?
- simple animation using tkinter
- How to add a question mark [?] button on the top of a tkinter window
- How to display an image after a time interval?
- How to select a directory and store the location using tkinter in Python
- tkinter maximum canvas size?
- TkInter Label Change Font Size by Text Length
- How to add a background image into pygame?
- Adding collision to maze walls
- How to install pygame? [duplicate]
- Why do I get “AttributeError: NoneType object has no attribute” using Tkinter? Where did the None value come from?
- How to modify the default font in Tkinter?
- Python – create an EXE that runs code as written, not as it was when compiled
- Tkinter: windows without title bar but resizable
- Pygame not showing anything in the window [duplicate]
- Pygame Rotated Shooting
- Chinese unicode fonts in PyGame