You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
373 B

from dataclasses import dataclass
from typing import Any, Callable, Optional
@dataclass
class UIContext:
log: Callable[[str], None]
set_status: Callable[[str], None]
choose_file: Callable[[], Optional[str]]
ensure_impl: Callable[[Any, str], bool]
get_selected_file: Callable[[], Optional[str]]
set_selected_file: Callable[[str], None]