working fileSelect component

This commit is contained in:
Qubasa
2025-05-12 17:54:05 +02:00
parent 9544a3e522
commit 3ea01c60f6
7 changed files with 38 additions and 28 deletions

View File

@@ -35,6 +35,15 @@ class FileRequest:
@API.register_abstract
def cancel_task(task_id: str) -> None:
"""Cancel a task by its op_key."""
msg = "cancel_task() is not implemented"
raise NotImplementedError(msg)
@API.register_abstract
def list_tasks() -> list[str]:
"""List all tasks."""
msg = "list_tasks() is not implemented"
raise NotImplementedError(msg)
@API.register_abstract
@@ -43,6 +52,8 @@ def open_file(file_request: FileRequest) -> list[str] | None:
Abstract api method to open a file dialog window.
It must return the name of the selected file or None if no file was selected.
"""
msg = "open_file() is not implemented"
raise NotImplementedError(msg)
@dataclass