While making an HTML help tool in Python, I wanted to exit the program smoothly, like clicking the X button on Google Chrome. But, I encountered an issue. It asks me if I want to kill the program, instead of doing it automatically.
I tried using quit()
, exit()
and sys.exit()
. All do the same thing. How can I get the program to exit smoothly?