-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa02ae2
commit c8dd85e
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
sinner/gui/controls/ProgressIndicator/DummyProgressIndicator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |