Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: tkAgg (and others) event look issue #26714

Copy link
Copy link
Open
@2sn

Description

@2sn
Issue body actions

Bug summary

tk hangs/crashes if windows are closed not in reverse order of opened. This happens in ipython shell.

I have no other issues with ipython, only with matplotlib.

Code for reproduction

%matplotlib tk
figure()
from matplotlib.pylab import *
ion()
plot([0,1])
figure()
plot([0,1])

# Then close Window 1.

Actual outcome

Window 2 becomes non-responsive.

Expected outcome

There should be no crash irrespective in what order windows are closed.

In some cases the shell hangs entirely, and the terminal window has to be closed (^C or ^Z do not work).

Additional information

It happens 100% of the time.

Operating system

Fedora 38

Matplotlib Version

3.7.2

Matplotlib Backend

TkAgg

Python version

3.11.4 (build from source)

Jupyter version

8.15.0 (installed from pip)

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.