using-pyinstaller 863 B

12345678910111213141516171819202122
  1. To make pyinstaller work correctly, use the --windowed flag:
  2. pyinstaller animal-gui.py FileChooser.py FileSelectWindow.py Handlers.py --windowed
  3. Each script needs to be named so that it can create the import files from each of them.
  4. --windowed
  5. hides the terminal output window.
  6. -F
  7. Converts everything into one exe file, but makes the program take a
  8. long time to load because it has to extract all the files to a
  9. temporary folder. This takes especially long on windows.
  10. The output will be a folder named animal-gui in a folder called dist.
  11. You need to copy the .glade file into the dist/animal-gui/ folder. Also
  12. copy any other resources that the program uses, like pictures.
  13. To complete the installation, we will need to make a windows script that
  14. makes a link to the executable so that the users do not need to poke
  15. around in the installation folder.