Python 3.6 quit() not working after porting to exe

后端 未结 1 1865
盖世英雄少女心
盖世英雄少女心 2021-01-27 23:02

I have a small tkinter gui that generates some reports. I built a quit button into it. The button works perfectly when I launch the script, but I converted it to an exe with cx_

相关标签:
1条回答
  • 2021-01-27 23:53

    As per the comments the quit function doesn't work outside of the interpreter

    def quits():
        sys.exit()
    

    That does the trick

    0 讨论(0)
提交回复
热议问题