From d04d674983487cc7e31dc5fb97ce3aead0eeaa38 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 1 Mar 2024 16:25:33 -0700 Subject: [PATCH] Fix focus on input box --- voipms-sms-tui.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/voipms-sms-tui.py b/voipms-sms-tui.py index 01d5979..02f32b6 100644 --- a/voipms-sms-tui.py +++ b/voipms-sms-tui.py @@ -223,10 +223,17 @@ class ConversationView(urwid.WidgetWrap): self.send_button, ]) self.header = urwid.Text("VoIP.ms SMS TUI", urwid.CENTER) - self.view = urwid.Frame( - urwid.AttrMap(self.chat, "body"), - header=urwid.AttrMap(self.header, "header"), - footer=urwid.AttrMap(self.send, "footer") + self.view = urwid.Pile([ + ('pack', urwid.AttrMap(self.header, "header")), + urwid.AttrMap( + urwid.ScrollBar( + self.chat, + trough_char=urwid.ScrollBar.Symbols.LITE_SHADE + ), + "body" + ), + ('pack', urwid.AttrMap(self.send, "footer")), + ] ) c = self.conversation_selection() w = urwid.Columns(