Closed
Description
Bug report
Bug summary
Connect a callback to the "close_event" of a wx(agg) window, and close the window using the "q" shortcut. The event is not emitted (unlike for qt5, gtk3, and tk).
Code for reproduction
$ MPLBACKEND=wxagg python -c 'from pylab import *; gcf().canvas.mpl_connect("close_event", print); show()'
and press 'q'.
Actual outcome
Nothing printed.
Expected outcome
A CloseEvent printed (as for the other GUI toolkits).
Matplotlib version
- Operating system: linux
- Matplotlib version: master
- Matplotlib backend (
print(matplotlib.get_backend())
): wxagg - Python version: 38
- Jupyter version (if applicable): no
- Other libraries:
attn @RobinD42 perhaps you may have an idea?