Andreas Sandberg Andreas Sandberg - 4 months ago 14
Python Question

cx_freeze build doesn't allow program quitting

I've tried with

exit(0)
in tkinter,
pygame.quit()
in pygme and other things in my cx_freeze build, but an error pops up when using
pygame.quit()
(which stops the whole program which is not intentional) and when I use
exit(0)
in tkinter it won't allow me to quit. It simply does nothing. Is there something i'm missing?

Answer

It is odd, it should be correct but you can try this...

import sys
print("")
Comments