From 80d40a7e057e168de2c6bb2b4d4548157865df4e Mon Sep 17 00:00:00 2001 From: laffra Date: Wed, 22 Nov 2023 23:49:41 +0100 Subject: [PATCH] Render the Logger UI later --- ltk/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ltk/widgets.py b/ltk/widgets.py index a4e68de..9ca3c74 100644 --- a/ltk/widgets.py +++ b/ltk/widgets.py @@ -595,7 +595,7 @@ def __init__(self): def add_table(self): self.selector = find('#ltk-log-level') - self.element.append( + self.element.css("opacity", 0).append( VBox( HBox( Text().text("When"), @@ -663,6 +663,7 @@ def add(self, level, *args, **argv): else: console.orig_log(*args) self.filter_rows() + self.element.animate(to_js({"opacity": 1}), 1300) except Exception as e: print("Log error:", e)