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.
If you rename the file to *filename*.pyw then the program will launch with no console.
tkinter gui is closed but console is not closed