Skip to content
Advertisement

Force overlay a PySimpleGUI window

I just want that if someone tries to close the GUI window using close button instead of clicking “OK”, the window reappears… In simple words, they cannot close this one or access any other window without clicking “OK”.

JavaScript

Advertisement

Answer

It is defined in source code of PySimpleGUI. You can change it to generate an event “WIN_CLOSE”, like this

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement