Close the window.
In most of the cases, it is not recommended to close a window. You should hide it or set the size to 0 pixel so you can show it again when necessary.
The event event.window:close is raised to let you cancel the window termination if necessary.
To close the application, try app.close. |