Add 'New Contact' button
This commit is contained in:
parent
563427397e
commit
dceb20a63c
|
@ -307,6 +307,12 @@ class ConversationView(urwid.WidgetWrap):
|
|||
self.scroll_to_bottom()
|
||||
selection = self.conversation_selection()
|
||||
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(
|
||||
urwid.Button(
|
||||
"Settings", self.send_message(self.send_edit), align=urwid.CENTER
|
||||
|
@ -314,8 +320,9 @@ class ConversationView(urwid.WidgetWrap):
|
|||
"buttn", "buttnf"
|
||||
)
|
||||
c = urwid.Pile([
|
||||
('pack',new_conversation),
|
||||
sb_selection,
|
||||
('pack',settings)
|
||||
('pack',settings),
|
||||
])
|
||||
w = urwid.Columns(
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue