diff --git a/tradedangerous/misc/progress.py b/tradedangerous/misc/progress.py index 790440cd..c4a4c3b4 100644 --- a/tradedangerous/misc/progress.py +++ b/tradedangerous/misc/progress.py @@ -34,6 +34,13 @@ def __init__(self, width: int = 10, prefix: Optional[str] = None): super().__init__(width, prefix, add_columns=my_columns) +class LongRunningCountBar(BarStyle): + """ Creates a progress bar that is counting M/N items to completion with a time-remaining counter """ + def __init__(self, width: int = 10, prefix: Optional[str] = None): + my_columns = [MofNCompleteColumn(), TimeElapsedColumn(), TimeRemainingColumn()] + super().__init__(width, prefix, add_columns=my_columns) + + class TransferBar(BarStyle): """ Creates a progress bar representing a data transfer, which shows the amount of data transferred, speed, and estimated time remaining. """