Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 411:b109a79ac72f
primitivus: urwid 1.0.0 update (crash was caused by using non unicode caption)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Oct 2011 21:03:02 +0200 |
parents | 10b4f577d0c0 |
children | 3348331e0f09 |
comparison
equal
deleted
inserted
replaced
410:ef9a4453959b | 411:b109a79ac72f |
---|---|
229 | 229 |
230 def __buildMainWidget(self): | 230 def __buildMainWidget(self): |
231 self.contactList = ContactList(self, self.CM, on_click = self.contactSelected, on_change=lambda w: self.redraw()) | 231 self.contactList = ContactList(self, self.CM, on_click = self.contactSelected, on_change=lambda w: self.redraw()) |
232 #self.center_part = urwid.Columns([('weight',2,self.contactList),('weight',8,Chat('',self))]) | 232 #self.center_part = urwid.Columns([('weight',2,self.contactList),('weight',8,Chat('',self))]) |
233 self.center_part = urwid.Columns([('weight',2,self.contactList), ('weight',8,urwid.Filler(urwid.Text('')))]) | 233 self.center_part = urwid.Columns([('weight',2,self.contactList), ('weight',8,urwid.Filler(urwid.Text('')))]) |
234 self.editBar = sat_widgets.AdvancedEdit('> ') | 234 self.editBar = sat_widgets.AdvancedEdit(u'> ') |
235 self.editBar.setCompletionMethod(self._nick_completion) | 235 self.editBar.setCompletionMethod(self._nick_completion) |
236 urwid.connect_signal(self.editBar,'click',self.onTextEntered) | 236 urwid.connect_signal(self.editBar,'click',self.onTextEntered) |
237 self.menu_roller = self.__buildMenuRoller() | 237 self.menu_roller = self.__buildMenuRoller() |
238 self.main_widget = sat_widgets.FocusFrame(self.center_part, header=self.menu_roller, footer=self.editBar, focus_part='footer') | 238 self.main_widget = sat_widgets.FocusFrame(self.center_part, header=self.menu_roller, footer=self.editBar, focus_part='footer') |
239 return self.main_widget | 239 return self.main_widget |