Mercurial > libervia-desktop-kivy
changeset 54:514c187afebc
chat: changed udpate to use dict instead of single key/value
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 15 Sep 2016 21:59:39 +0200 |
parents | 65775152aac1 |
children | b0011c6dc7dc |
files | src/cagou/plugins/plugin_wid_chat.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.py Sun Sep 11 23:27:16 2016 +0200 +++ b/src/cagou/plugins/plugin_wid_chat.py Thu Sep 15 21:59:39 2016 +0200 @@ -82,9 +82,9 @@ else: self.mess_label.text_size = (parent.width - padding_x, None) - def update(self, key, value=None): - if key == 'avatar': - self.avatar.source = value + def update(self, update_dict): + if 'avatar' in update_dict: + self.avatar.source = update_dict['avatar'] class MessageInputWidget(TextInput):