Is it possible to make, when closing a python program, for example, to create and open a file, in general, here the user clicked on the cross, instead of closing the program right away, does some code work?

  • What is a "python program"? - Enikeyschik
  • Which cross is the user clicking on? Cross the console window? Cross the interface window, created by the python itself? - Xander
  • import signal and further documentation - eri

0