Mercurial > libervia-desktop-kivy
diff src/cagou/plugins/plugin_wid_chat.py @ 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 | abb81efef3bb |
children | a51ea7874e43 |
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):