Pyinstaller introduction: Python packaging program, which can package .py programs into .exe
Installation method under Windows:
pip3 install pyinstaller
Program packaging (requires CD to the directory where the program is located)
C:Python35Scriptspyinstaller -F -w -i image256.ico MainTab.py
-F Create a program
-w No black window when running
-i Use icons (icons must use ico format, recommended pixel 256x256)