mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-03-10 16:39:01 +00:00
Update selector.py
This commit is contained in:
@@ -11,6 +11,7 @@ IS_WINDOWS = sys.platform == "win32"
|
|||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
import msvcrt
|
import msvcrt
|
||||||
|
|
||||||
|
|
||||||
class Selector:
|
class Selector:
|
||||||
"""
|
"""
|
||||||
A custom interactive selector class using the Rich library.
|
A custom interactive selector class using the Rich library.
|
||||||
@@ -25,7 +26,7 @@ class Selector:
|
|||||||
page_size: int = 8,
|
page_size: int = 8,
|
||||||
minimal_count: int = 0,
|
minimal_count: int = 0,
|
||||||
dependencies: dict[int, list[int]] = None,
|
dependencies: dict[int, list[int]] = None,
|
||||||
collapse_on_start: bool = False
|
collapse_on_start: bool = False,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Initialize the Selector.
|
Initialize the Selector.
|
||||||
@@ -398,6 +399,7 @@ class Selector:
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def select_multiple(
|
def select_multiple(
|
||||||
options: list[str],
|
options: list[str],
|
||||||
minimal_count: int = 1,
|
minimal_count: int = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user