cut out default pipes from {l_bar}{r_bar}

This commit is contained in:
richardsheridan 2021-01-10 09:02:31 -05:00
parent 418f99a5c4
commit 13ccf1d5f5
1 changed files with 5 additions and 1 deletions

View File

@ -141,7 +141,11 @@ class tqdm_tk(std_tqdm): # pragma: no cover
self._tk_n_var.set(self.n)
d = self.format_dict
d['ncols'] = None
self._tk_text_var.set(self.format_meter(**d))
text = self.format_meter(**d)
# fixup only default bar format
if self.bar_format == "{l_bar}{r_bar}":
text = text.replace("||", "", 1)
self._tk_text_var.set(text)
if not self._tk_dispatching:
self._tk_window.update()