Apr-20-2019, 11:22 PM
(This post was last modified: Apr-20-2019, 11:25 PM by francisco_neves2020.)
(Apr-20-2019, 08:11 PM)SheeppOSU Wrote: 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 -
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
I will try that later on. I have created a tkinter warning to tell people to not close the cmd, otherwise the program will close and i have already made a setup of exe for anyone to install in there computers if they won't to see ig they like it and want they wanna see on the program. So, this post i can end it here. Many thanks all for the replies.
(Apr-20-2019, 11:20 PM)SheeppOSU Wrote: You said that you use photos in this code correct
Could you give me a line in your code where you import a picture
I have send you a pm