# HG changeset patch # User Goffi # Date 1473969579 -7200 # Node ID 514c187afebc62fb25fcc17956d1e0d3bd266af6 # Parent 65775152aac123d02aeaeccdb2c9956e86729193 chat: changed udpate to use dict instead of single key/value diff -r 65775152aac1 -r 514c187afebc src/cagou/plugins/plugin_wid_chat.py --- 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):