0

I made a GUI with Tkinter. My Code uses some PNGs. Maybe this is the problem why I can't run the Executable I made with Pyinstaller. When I run the Executable a Commandwindow shows up. Then nothing happens for a few seconds. Then you can see some Code on the screen for like half a second and the Commandwindow vanishes. Can someone help please?

Nici
  • 1
  • "_Then you can see some Code on the screen for like half a second_" ~ Try to capture this code and paste it here – Delrius Euphoria Jan 01 '21 at 23:40
  • Are you using the --onefile option? If so you need to include any data your program needs in that one file. You can do that with a spec file or with the --add-data option. You can also convert your .pngs to python data files and import them. – Novel Jan 01 '21 at 23:50
  • Does this answer your question? [Bundling data files with PyInstaller (--onefile)](https://stackoverflow.com/questions/7674790/bundling-data-files-with-pyinstaller-onefile) – acw1668 Jan 02 '21 at 02:30

0 Answers0