comparison frontends/primitivus/contact_list.py @ 121:03d8bcc67182

misc documentation
author Goffi <goffi@goffi.org>
date Thu, 08 Jul 2010 14:19:30 +0800
parents 1ca5f254ce41
children 961e0898271f
comparison
equal deleted inserted replaced
120:1ca5f254ce41 121:03d8bcc67182
33 self.list_wid = List([], style=['single','no_first_select'], align='left', on_click=self.__contactClicked, on_change=on_change) 33 self.list_wid = List([], style=['single','no_first_select'], align='left', on_click=self.__contactClicked, on_change=on_change)
34 34
35 #we now build the widget 35 #we now build the widget
36 body_content = urwid.SimpleListWalker([self.list_wid]) 36 body_content = urwid.SimpleListWalker([self.list_wid])
37 frame_body = urwid.ListBox(body_content) 37 frame_body = urwid.ListBox(body_content)
38 frame = urwid.Frame(frame_body) #,urwid.AttrMap(urwid.Text(_("Contacts"),align='center'),'title')) 38 frame = urwid.Frame(frame_body)
39 self.main_widget = LabelLine(frame,SurroundedText(_("Contacts"))) 39 self.main_widget = LabelLine(frame,SurroundedText(_("Contacts")))
40 urwid.WidgetWrap.__init__(self, self.main_widget) 40 urwid.WidgetWrap.__init__(self, self.main_widget)
41 if on_click: 41 if on_click:
42 urwid.connect_signal(self, 'click', on_click, user_data) 42 urwid.connect_signal(self, 'click', on_click, user_data)
43 if on_change: 43 if on_change: