def update(self, value):
"""
- Updates the current status
+ Updates the current progress
"""
if self.scale:
self.scale.set(value)
self.tui.refresh()
+ def status(self, text):
+ """
+ Updates the current status
+ """
+ self.textbox.setText(text or "")
+ self.tui.refresh()
+
class ProgressWindowCallbacks(object):
def __init__(self, window):
"""
Updates the text in the textbox
"""
- self.window.textbox.setText(text)
- self.window.tui.refresh()
+ self.window.status(text)
def status(self, progress, message):
if progress: