mercredi 1 avril 2015

Disable close button of console window

I want to control usage of the [X] button (the exit window button), which is generally present in the top-right corner when running a console-based Python application. I will be providing an in-program call to: sys.exit() when required. I know there is a similar option available even for Java GUI programming.



Aucun commentaire:

Enregistrer un commentaire