comparison libervia/tui/progress.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents b620a8e882e1
children
comparison
equal deleted inserted replaced
4269:64a85ce8be70 4270:0d7bb4df2343
74 loop.set_alarm_in(0.2, self.progress_cb, (progress_id, message, profile)) 74 loop.set_alarm_in(0.2, self.progress_cb, (progress_id, message, profile))
75 75
76 def _remove_bar(self, progress_id, profile): 76 def _remove_bar(self, progress_id, profile):
77 wid = self.progress_dict[(progress_id, profile)]["full"] 77 wid = self.progress_dict[(progress_id, profile)]["full"]
78 self.progress_list.remove(wid) 78 self.progress_list.remove(wid)
79 del (self.progress_dict[(progress_id, profile)]) 79 del self.progress_dict[(progress_id, profile)]
80 80
81 def _on_clear(self, button): 81 def _on_clear(self, button):
82 to_remove = [] 82 to_remove = []
83 for progress_id, profile in self.progress_dict: 83 for progress_id, profile in self.progress_dict:
84 if self.progress_dict[(progress_id, profile)]["state"] == "done": 84 if self.progress_dict[(progress_id, profile)]["state"] == "done":