Pyinstaller, NameError: global name 'quit' is not defined

后端 未结 3 497
不知归路
不知归路 2021-01-03 01:39

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:

3条回答
  •  离开以前
    2021-01-03 02:08

    def quit():
        sys.exit()
    
    
    self.quit_button = Button(self, text="QUIT",command = quit)
    

提交回复
热议问题