Just-Moh-it / HotinGo

A 🐬 MySQL + 🐍 Python's Tkinter-based 🏖 Hotel Management System with a 😍 beautiful user interface.
https://www.figma.com/file/MVq5Q3fhVJB2r70r7I3nJ3
MIT License
192 stars 59 forks source link

Can not close program by click close button #5

Open slipperstree opened 2 years ago

slipperstree commented 2 years ago

When click close button, window will disapred but the program is still alive in backgroud.

Just-Moh-it commented 2 years ago

If this is a mac, it is supposed to happen, or else if this is on a Windows-based OS, this isn't supposed to happen. It still happens because of a temporary window that is closed as soon as the main app is created in order to allow for multi-window support.

Could be fixed by adding a quit() statement after the close button is pressed on any of the windows.