PySide / PyQt detect if user trying to close window PySide / PyQt detect if user trying to close window tkinter tkinter