From 4a34f5477d296319e267480ab77d08de644e7a32 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 8 Jul 2023 18:32:31 -0700 Subject: [PATCH] Add delay to TUI() initialization Avoids issue where the main menu is printed before the layout is fully set causing the first few lines to be hidden by the title pane. --- scripts/wk/ui/tui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/wk/ui/tui.py b/scripts/wk/ui/tui.py index a32dde76..e4389f50 100644 --- a/scripts/wk/ui/tui.py +++ b/scripts/wk/ui/tui.py @@ -211,6 +211,9 @@ class TUI(): ), )) + # Done + sleep(0.2) + def remove_all_info_panes(self) -> None: """Remove all info panes and update layout.""" self.layout['Info'].pop('height', None)