When you say black window are you taking about the cmd/command prompt/console
If your getting errors from that it probably means there is something wrong in your code, probably something to do about location of pictures and not being able to find imports all that stuff. If you are using pyinstaller from the link above, there is an option for window based meaning the console/cmd won't appear. If the problem is w/ being able to find pictures/songs I would suggest something like this -
If your getting errors from that it probably means there is something wrong in your code, probably something to do about location of pictures and not being able to find imports all that stuff. If you are using pyinstaller from the link above, there is an option for window based meaning the console/cmd won't appear. If the problem is w/ being able to find pictures/songs I would suggest something like this -
import os from pathlib import Path #may have to use pip to install d = Path(__file__).parent picture = os.path.join(d, 'Folder for stuff', 'picture.png') #The "Folder for Stuff" would be in the same directory as the .exe