Mercurial > libervia-backend
comparison frontends/primitivus/primitivus @ 168:a2655a0a4eac
Primitivus: 2 bugs fixes
- fixed bad focus when using removeWindow
- UnselectAll was incomplete in contactList
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 09 Aug 2010 22:06:56 +0800 |
parents | b318d2b58887 |
children | ec6611445a5b |
comparison
equal
deleted
inserted
replaced
167:6fd053c99421 | 168:a2655a0a4eac |
---|---|
255 """Remove window showed on the right column""" | 255 """Remove window showed on the right column""" |
256 #TODO: to a better Window management than this crappy hack | 256 #TODO: to a better Window management than this crappy hack |
257 assert(len(self.center_part.widget_list)<=2) | 257 assert(len(self.center_part.widget_list)<=2) |
258 wid_idx = len(self.center_part.widget_list)-1 | 258 wid_idx = len(self.center_part.widget_list)-1 |
259 self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text('')) | 259 self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text('')) |
260 self.center_part.set_focus(0) | |
260 self.redraw() | 261 self.redraw() |
261 | 262 |
262 def contactSelected(self, contact_list): | 263 def contactSelected(self, contact_list): |
263 contact = contact_list.get_contact() | 264 contact = contact_list.get_contact() |
264 if contact: | 265 if contact: |