wip - refactoring and implementing 'real-time' log output

This commit is contained in:
Stephan Lüscher 2024-05-08 18:56:31 +00:00
parent dd001f4fe5
commit 50395caec7
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
3 changed files with 51 additions and 45 deletions

View file

@ -116,25 +116,5 @@ class local_file_picker(ui.dialog):
self.submit([r["path"] for r in rows])
class progress_spinner(ui.spinner):
def __init__(
self,
*,
type: str = "dots",
size: str = "lg",
color: str | None = "red",
thickness: float = 5,
) -> None:
super().__init__(type, size=size, color=color, thickness=thickness)
with self, ui.spinner():
self.visible = False
def enable_progress(self) -> None:
self.set_visibility(True)
def disable_progress(self) -> None:
self.set_visibility(False)
def get_project_root() -> Path:
return Path(__file__).parent.parent