Andreas Sandberg Andreas Sandberg - 1 year ago 54
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 Source

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

import sys
print("")