From 418f99a5c46e3e402c636b976bebe28bd470c385 Mon Sep 17 00:00:00 2001 From: richardsheridan Date: Sun, 10 Jan 2021 09:01:36 -0500 Subject: [PATCH] respond to comments --- tqdm/tk.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tqdm/tk.py b/tqdm/tk.py index a12332c3..04d5ca56 100644 --- a/tqdm/tk.py +++ b/tqdm/tk.py @@ -59,7 +59,6 @@ class tqdm_tk(std_tqdm): # pragma: no cover 'bar_format', "{l_bar}{r_bar}").replace("{bar}", "") # convert disable = None to False kwargs['disable'] = bool(kwargs.get('disable', False)) - colour = kwargs.pop('colour', "blue") self._warn_leave = 'leave' in kwargs grab = kwargs.pop('grab', False) tk_parent = kwargs.pop('tk_parent', None) @@ -98,9 +97,6 @@ class tqdm_tk(std_tqdm): # pragma: no cover _tk_label.pack() self._tk_pbar = ttk.Progressbar( pbar_frame, variable=self._tk_n_var, length=450) - # WIP: is this the best way to set colour? - # WIP: what about error/complete (green/red) as with notebook? - self._tk_pbar.tk_setPalette(colour) if self.total is not None: self._tk_pbar.configure(maximum=self.total) else: @@ -159,17 +155,6 @@ class tqdm_tk(std_tqdm): # pragma: no cover if refresh and not self._tk_dispatching: self._tk_window.update() - def refresh(self, nolock=True, **kwargs): # WIP: why is this needed? - """ - Force refresh the display of this bar. - - Parameters - ---------- - nolock : bool, optional - Ignored, behaves as if always `True`. - """ - return super(tqdm_tk, self).refresh(nolock=True, **kwargs) - def cancel(self): """ `cancel_callback()` followed by `close()`