Commit 73c0bd6
committed
Close all plot windows of a blocking show() on Ctrl+C
Addresses the Qt part of matplotlib#23385.
It appears that `qapp.quit()` does not automatically close the windows
of the app. We therefore do it explicitly.
A unit test for this would be quite complex. Test this
by hand by Ctrl+C in an interactive shell.1 parent 1d1171f commit 73c0bd6
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments