Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting to exe problems
#10
(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
Reply


Messages In This Thread
Converting to exe problems - by francisco_neves2020 - Apr-18-2019, 08:59 PM
RE: Converting to exe problems - by SheeppOSU - Apr-18-2019, 11:30 PM
RE: Converting to exe problems - by SheeppOSU - Apr-19-2019, 12:12 AM
RE: Converting to exe problems - by gehrenfeld - Apr-20-2019, 12:51 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 08:11 PM
RE: Converting to exe problems - by francisco_neves2020 - Apr-20-2019, 11:22 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 11:20 PM
RE: Converting to exe problems - by SheeppOSU - Apr-20-2019, 11:25 PM
RE: Converting to exe problems - by snippsat - Apr-20-2019, 11:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems converting pyqt4 script to pyqt5 using pyqt4topyqt5.py Vysero 1 2,875 Jul-31-2018, 08:56 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020