In some os's, When you make a tkinter window and put it to mainloop, and make a button for exit and convert it to exe (with pyinstaller) like this:
from tkinter import *
def exit_():
window.destroy()
exit()
window = Tk()
text = Label(window, text = "Hello World")
text.pack()
window.protocol('WM_DELETE_WINDOW', exit_)
window.mainloop()
If you use the built-in exit() command, then sometimes the window will not get closed.
Is there an Answer for that?