comparison frontends/src/primitivus/primitivus @ 607:c123dddaea6b

primitivus: fixed urwid issues with recent urwid versions fix bug 18
author Goffi <goffi@goffi.org>
date Sun, 24 Feb 2013 13:57:37 +0100
parents c8b129a3c209
children ea9aa51234eb
comparison
equal deleted inserted replaced
606:21ddafccf32d 607:c123dddaea6b
154 if self.contact_list in center_widgets: 154 if self.contact_list in center_widgets:
155 self.center_part.set_focus(0) #necessary as the focus change to the next object, we can go out of range if we are on the last object of self.center_part 155 self.center_part.set_focus(0) #necessary as the focus change to the next object, we can go out of range if we are on the last object of self.center_part
156 center_widgets.remove(self.contact_list) 156 center_widgets.remove(self.contact_list)
157 del self.center_part.column_types[0] 157 del self.center_part.column_types[0]
158 else: 158 else:
159 center_widgets.insert(0, self.contact_list) 159 self.center_part.contents.insert(0, (self.contact_list, ('weight', 2, False)))
160 self.center_part.column_types.insert(0, ('weight', 2))
161 except AttributeError: 160 except AttributeError:
162 #The main widget is not built (probably in Profile Manager) 161 #The main widget is not built (probably in Profile Manager)
163 pass 162 pass
164 elif input == 'window resize': 163 elif input == 'window resize':
165 width,height = self.loop.screen_size 164 width,height = self.loop.screen_size