-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Bug] sg.WIN_CLOSED event is not generated, after catching mouse down events in same window for read_all_windows calls #6691
Comments
Forgot to mention: Could be distanly related to It is related in the following sense: |
I did more research. Google found this, github did not. This seems to be the same as: |
Thank you for taking the time to not just open/log the bug, but continue to research and provide data. It's really appreciated. Can any of this be Mac specific or is it going to be experienced on all platforms (apologize that I've not spent time investigating this in detail yet but thought I would ask so that when I do I've got a another piece of data). |
I tried this on windows and the problem and the effect are identical. Version on windows: PySimpleGui version: GUI version: Python and Gui version as marginally different from those on my Mac. |
Type of Issue (Enhancement, Error, Bug, Question)
Bug
Operating System
MacOs 10.14.6
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Version information can be obtained by calling
sg.main_get_debug_data()
Or you can print each version shown in ()
Python version: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 21:00:12) [Clang 16.0.6 ]
port: tkinter
tkinter version: 8.6.13
PySimpleGUI version: 4.60.5
PySimpleGUI filename: /Users/cm/anaconda3/envs/sg/lib/python3.12/site-packages/PySimpleGUI/PySimpleGUI.py
Python version (
sg.sys.version
)3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 21:00:12) [Clang 16.0.6 ]
PySimpleGUI Version (
sg.__version__
)4.60.5
GUI Version (tkinter (
sg.tclversion_detailed
), PySide2, WxPython, Remi)8.6.13
Your Experience In Months or Years (optional)
Years Python programming experience
4 years
Years Programming experience overall
30 years
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
no
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
The sg.WIN_CLOSED event is not generated, after catching mouse down events in same window.
If I open a window and if I hit the "window close" icon in the left upper corner (MacOsX), the close event is generated and the window closes and in the event loop is exited.
If I click inside of the window before clicking the close window icon, it will not accept the close window icon any more. If I click on the close icon I get the window, event, value as follows:
<PySimpleGUI.PySimpleGUI.Window object at 0x10a700a10> -GRAPH2-+UP {'-GRAPH2-': (3, 293)}
The coordinate is a coordinate inside of the close window icon.
This only happens after generating a mouse down event in the window.
Code To Duplicate
This pre-formatted code block is all set for you to paste in your bit of code:
Screenshot, Sketch, or Drawing
Watcha Makin?
If you care to share something about your project, it would be awesome to hear what you're building.
The text was updated successfully, but these errors were encountered: