From: Michael Tremer Date: Sat, 15 Mar 2025 11:58:21 +0000 (+0000) Subject: tui: Remove unused progress callbacks X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2eb756b4dd0d8b0e577133da58388ad53626d32b;p=people%2Fms%2Fbricklayer.git tui: Remove unused progress callbacks Signed-off-by: Michael Tremer --- diff --git a/src/python/tui.py b/src/python/tui.py index 751192d..11ac260 100644 --- a/src/python/tui.py +++ b/src/python/tui.py @@ -403,8 +403,7 @@ class ProgressWindow(Window): # Show the window self.start() - # Return the callbacks - return ProgressWindowCallbacks(self) + return self def __exit__(self, type, value, traceback): # Close the window @@ -446,30 +445,6 @@ class ProgressWindow(Window): self.tui.refresh() -class ProgressWindowCallbacks(object): - def __init__(self, window): - self.window = window - - def progress(self, value): - """ - Updates the progressbar value - """ - self.window.update(value) - - def message(self, text): - """ - Updates the text in the textbox - """ - self.window.status(text) - - def status(self, progress, message): - if progress: - self.progress(progress) - - if message: - self.message(message) - - class PasswordWindow(ButtonsWindow): def __init__(self, *args, **kwargs): ButtonsWindow.__init__(self, *args, **kwargs)