MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _shutdown_application

Function _shutdown_application

lib/matplotlib/backends/_backend_gtk.py:31–42  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

29
30
31def _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
45def _create_application():

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…