Mercurial > libervia-backend
diff frontends/primitivus/contact_list.py @ 120:1ca5f254ce41
primitivus group chat & misc
primitivus: new widget: SurroundedText (text with a character repeated around it)
primitivus: new decorator LabelLine (like lineBox, but with a label on the top line)
wix & primitivus & quick_app: group chat method move to quick_chat
wix: when new message, window is not raised anymore, but RequestUserAttention is called instead
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 08 Jul 2010 14:12:18 +0800 |
parents | ded2431cea5a |
children | 03d8bcc67182 |
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py Mon Jul 05 19:13:36 2010 +0800 +++ b/frontends/primitivus/contact_list.py Thu Jul 08 14:12:18 2010 +0800 @@ -21,7 +21,7 @@ import urwid from quick_frontend.quick_contact_list import QuickContactList -from custom_widgets import Password,List,InputDialog,ConfirmDialog,Alert +from custom_widgets import Password,List,InputDialog,ConfirmDialog,Alert,LabelLine,SurroundedText class ContactList(urwid.WidgetWrap, QuickContactList): @@ -35,8 +35,8 @@ #we now build the widget body_content = urwid.SimpleListWalker([self.list_wid]) frame_body = urwid.ListBox(body_content) - frame = urwid.Frame(frame_body,urwid.AttrMap(urwid.Text(_("Contacts"),align='center'),'title')) - self.main_widget = urwid.LineBox(frame) + frame = urwid.Frame(frame_body) #,urwid.AttrMap(urwid.Text(_("Contacts"),align='center'),'title')) + self.main_widget = LabelLine(frame,SurroundedText(_("Contacts"))) urwid.WidgetWrap.__init__(self, self.main_widget) if on_click: urwid.connect_signal(self, 'click', on_click, user_data)