comparison cagou/plugins/plugin_wid_chat.py @ 387:d61bbbac4160

cagou widget: don't add header_input systematically anymore: header input is often used in CagouWidget for e.g. filtering, but not always, and when it is not, it is weird and confusing to have a TextInput which doesn't do nothing. To avoid that, a new `use_header_input` bool attribute (set to False by default) has been added to CagouWidget.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 20:47:17 +0100
parents 1da3c379205b
children e2f806779b53
comparison
equal deleted inserted replaced
386:415de998b91d 387:d61bbbac4160
381 381
382 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget): 382 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget):
383 message_input = properties.ObjectProperty() 383 message_input = properties.ObjectProperty()
384 messages_widget = properties.ObjectProperty() 384 messages_widget = properties.ObjectProperty()
385 history_scroll = properties.ObjectProperty() 385 history_scroll = properties.ObjectProperty()
386 use_header_input = True
386 global_screen_manager = True 387 global_screen_manager = True
387 collection_carousel = True 388 collection_carousel = True
388 389
389 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None, 390 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None,
390 subject=None, statuses=None, profiles=None): 391 subject=None, statuses=None, profiles=None):