I have a python script which runs just fine, however after running pyinstaller, I get the following when I use a quit()
or exit()
command:
quit
can be found in pygame.locals import *
Usage:
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
That is because there is no quit
command. You are looking for sys.exit.
def quit():
sys.exit()
self.quit_button = Button(self, text="QUIT",command = quit)