8000 wx backends don't send close_event if window is closed via "q" keypress · Issue #16919 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
wx backends don't send close_event if window is closed via "q" keypress #16919
Closed
@anntzer

Description

@anntzer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0