Closed shields1968 closed 1 month ago
The PySimpleGUI GitHub Issues bot has determined there is a problem with your Issue's form.
Please fix the problems by editing the first comment or the title and then reopen your issue to have it checked again.
More detailed information:
Title must be ONE of: Bug Question Enhancement Error
Operating System Win 10
PySimpleGUI Port tkinter
Versions (NOTE - PSG4 is no longer supported) Version information can be obtained by calling sg.main_get_debug_data() Or you can print each version shown in ()
Python version (sg.sys.version) '3.8.19 (default, Mar 20 2024, 19:55:45) [MSC v.1916 64 bit (AMD64)]'
PySimpleGUI Version (sg.version) 4.60.3
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi) GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi) Priority Support Code (Commercial License Users) Your Experience In Months or Years (optional) Years Python programming experience
hobby
Years Programming experience overall
hobby Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Not
Anything else you think would be helpful?
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
Detailed Description
Hello I have a question, I have a small program that opens based on events, which is fine but I want the user to not be able to close it unless it is for something in particular. So far it works fine, but when the user uses the Alt + F4 keys, it closes and gives the following error: bad window path name ".!toplevel2" Is there a way to control this? Could it be to disable the button or buttons mentioned so that they cannot use them?
Thank you very much
Code To Duplicate
A short program that isolates and demonstrates the problem (Do not paste your massive program, but instead 10-20 lines that clearly show the problem)
This pre-formatted code block is all set for you to paste in your bit of code: