MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / close

Method close

pager_lib/tqdm/gui.py:88–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.ax = ax
87
88 def close(self):
89 if self.disable:
90 return
91
92 self.disable = True
93
94 with self.get_lock():
95 self._instances.remove(self)
96
97 # Restore toolbars
98 self.mpl.rcParams['toolbar'] = self.toolbar
99 # Return to non-interactive mode
100 if not self.wasion:
101 self.plt.ioff()
102 if self.leave:
103 self.display()
104 else:
105 self.plt.close(self.fig)
106
107 def clear(self, *_, **__):
108 pass

Callers

nothing calls this directly

Calls 2

displayMethod · 0.95
get_lockMethod · 0.80

Tested by

no test coverage detected