Skip to content

Commit

Permalink
DummyProgressIndicator implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
pozitronik committed Nov 9, 2024
1 parent fa02ae2 commit c8dd85e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions sinner/gui/controls/ProgressIndicator/DummyProgressIndicator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from typing import List

from sinner.gui.controls.ProgressIndicator.BaseProgressIndicator import BaseProgressIndicator


# stub to disable progress indicator, when needed
class DummyProgressIndicator(BaseProgressIndicator):
def __init__(self, **kwargs): # type: ignore[no-untyped-def]
pass

def set_segments(self, segments: int) -> None:
pass

def update_states(self, states: List[int]) -> None:
pass

def set_segment_value(self, index: int, value: int) -> None:
pass

def set_segment_values(self, indexes: List[int], value: int, reset: bool = True, update: bool = True) -> None:
pass

async def set_segment_value_async(self, index: int, value: int) -> None:
pass

def place_configure(self, cnf={}, **kw) -> None: # type: ignore[no-untyped-def]
pass

0 comments on commit c8dd85e

Please sign in to comment.