Mercurial > libervia-desktop-kivy
diff cagou/kv/cagou_widget.kv @ 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 | 9ef01266e3fe |
children | 3c9ba4a694ef |
line wrap: on
line diff
--- a/cagou/kv/cagou_widget.kv Tue Feb 04 20:47:17 2020 +0100 +++ b/cagou/kv/cagou_widget.kv Tue Feb 04 20:47:17 2020 +0100 @@ -69,7 +69,6 @@ size: self.size <CagouWidget>: - header_input: header_input header_box: header_box orientation: "vertical" BoxLayout: @@ -83,9 +82,3 @@ size_hint: None, 1 width: self.height on_release: root.selector.open(self) - TextInput: - id: header_input - background_normal: app.expand('{media}/misc/borders/border_hollow_light.png') - multiline: False - on_text_validate: root.onHeaderInput() - on_text: root.onHeaderInputComplete(*args)