Add 'New Contact' button

This commit is contained in:
John Mertz 2024-03-01 21:31:53 -07:00
parent 563427397e
commit dceb20a63c
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 8 additions and 1 deletions

View File

@ -307,6 +307,12 @@ class ConversationView(urwid.WidgetWrap):
self.scroll_to_bottom() self.scroll_to_bottom()
selection = self.conversation_selection() selection = self.conversation_selection()
sb_selection = urwid.ScrollBar(selection, trough_char=urwid.ScrollBar.Symbols.LITE_SHADE) sb_selection = urwid.ScrollBar(selection, trough_char=urwid.ScrollBar.Symbols.LITE_SHADE)
new_conversation = urwid.AttrMap(
urwid.Button(
"New", self.send_message(self.send_edit), align=urwid.CENTER
),
"buttn", "buttnf"
)
settings = urwid.AttrMap( settings = urwid.AttrMap(
urwid.Button( urwid.Button(
"Settings", self.send_message(self.send_edit), align=urwid.CENTER "Settings", self.send_message(self.send_edit), align=urwid.CENTER
@ -314,8 +320,9 @@ class ConversationView(urwid.WidgetWrap):
"buttn", "buttnf" "buttn", "buttnf"
) )
c = urwid.Pile([ c = urwid.Pile([
('pack',new_conversation),
sb_selection, sb_selection,
('pack',settings) ('pack',settings),
]) ])
w = urwid.Columns( w = urwid.Columns(
[ [