1

I am working on GUI application with tkinter. When I click in the corner on Button [X] GUI application is closed, but console application is still running.

How to make when I closed GUI application in same time is closed console application.

I am trying with sys.exit() but this not worked.

Sec Cam
  • 67
  • 4
  • 12

1 Answers1

1

If you rename the file to *filename*.pyw then the program will launch with no console.

Ethan Field
  • 4,646
  • 3
  • 22
  • 43