Resets to 0 iterations for repeated use. Parameters ---------- total : int or float, optional. Total to use for the new bar.
(self, total=None)
| 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(): |