Mercurial > libervia-backend
comparison frontends/src/primitivus/contact_list.py @ 2017:7aa58b7a47e2
quick_frontend, primitivus (contact_list): ContactList widget must now call postInit() when ready, to avoid being registered before being constructed
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jul 2016 17:56:18 +0200 |
parents | f09562b0704d |
children | 35762e9ce8b9 |
comparison
equal
deleted
inserted
replaced
2016:f09562b0704d | 2017:7aa58b7a47e2 |
---|---|
49 urwid.connect_signal(self, 'click', on_click, user_data) | 49 urwid.connect_signal(self, 'click', on_click, user_data) |
50 if on_change: | 50 if on_change: |
51 urwid.connect_signal(self, 'change', on_change, user_data) | 51 urwid.connect_signal(self, 'change', on_change, user_data) |
52 self.host.addListener('notification', self.onNotification, [self.profile]) | 52 self.host.addListener('notification', self.onNotification, [self.profile]) |
53 self.host.addListener('notificationsClear', self.onNotification, [self.profile]) | 53 self.host.addListener('notificationsClear', self.onNotification, [self.profile]) |
54 self.postInit() | |
54 | 55 |
55 def update(self, entities=None, type_=None, profile=None): | 56 def update(self, entities=None, type_=None, profile=None): |
56 """Update display, keep focus""" | 57 """Update display, keep focus""" |
57 # FIXME: full update is done each time, must handle entities, type_ and profile | 58 # FIXME: full update is done each time, must handle entities, type_ and profile |
58 widget, position = self.frame.body.get_focus() | 59 widget, position = self.frame.body.get_focus() |