11/3/2023 0 Comments Python program closes instantly![]() ![]() _caption('Reaction Speed Game')ĭef _init_(self, x, y, width, height, color): ![]() (You will see it stop at "here13") import pygame If you're interested in what I did, build this in an. You may want to look into packing the font with pyinstaller, or explicitly including pygame's font files for greater compatibility.Īs you can see in this package's open issue referencing pyinstaller not including the pygame's font files "PyInstaller does not pull in data files with imports that it finds": ![]() This is due to the 'comicsans' font not being a typical font.Ĭhanging the three instances of 'comicsans' to 'comicsansms' fixed it on my computer, I built it with pyinstaller.exe -onefile "path/to/script.py" So I went through and tracked down the error with print statements.įont = ('comicsans', 38, True)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |