Fix to XY_Grid script console progress bar and other progress bar improvements (#890)

Fix to XY_Grid script console progress bar and other progress bar improvements #890
This commit is contained in:
RnDMonkey
2022-09-23 22:09:59 -07:00
committed by GitHub
parent 7aec029423
commit ed8b8b3b8c
3 changed files with 36 additions and 5 deletions

View File

@@ -307,6 +307,13 @@ class TotalTQDM:
self.reset()
self._tqdm.update()
def updateTotal(self, new_total):
if not opts.multiple_tqdm:
return
if self._tqdm is None:
self.reset()
self._tqdm.total=new_total
def clear(self):
if self._tqdm is not None:
self._tqdm.close()