(app)
| 29 | |
| 30 | |
| 31 | def _shutdown_application(app): |
| 32 | # The application might prematurely shut down if Ctrl-C'd out of IPython, |
| 33 | # so close all windows. |
| 34 | for win in app.get_windows(): |
| 35 | win.close() |
| 36 | # The PyGObject wrapper incorrectly thinks that None is not allowed, or we |
| 37 | # would call this: |
| 38 | # Gio.Application.set_default(None) |
| 39 | # Instead, we set this property and ignore default applications with it: |
| 40 | app._created_by_matplotlib = True |
| 41 | global _application |
| 42 | _application = None |
| 43 | |
| 44 | |
| 45 | def _create_application(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…