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

Method reset

pager_lib/tqdm/tk.py:162–175  ·  view source on GitHub ↗

Resets to 0 iterations for repeated use. Parameters ---------- total : int or float, optional. Total to use for the new bar.

(self, total=None)

Source from the content-addressed store, hash-verified

160 self.close()
161
162 def reset(self, total=None):
163 """
164 Resets to 0 iterations for repeated use.
165
166 Parameters
167 ----------
168 total : int or float, optional. Total to use for the new bar.
169 """
170 if hasattr(self, '_tk_pbar'):
171 if total is None:
172 self._tk_pbar.configure(maximum=100, mode="indeterminate")
173 else:
174 self._tk_pbar.configure(maximum=total, mode="determinate")
175 super().reset(total=total)
176
177 @staticmethod
178 def _tk_dispatching_helper():

Callers

nothing calls this directly

Calls 1

configureMethod · 0.80

Tested by

no test coverage detected