comparison 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
comparison
equal deleted inserted replaced
386:415de998b91d 387:d61bbbac4160
67 Rectangle: 67 Rectangle:
68 pos: self.pos 68 pos: self.pos
69 size: self.size 69 size: self.size
70 70
71 <CagouWidget>: 71 <CagouWidget>:
72 header_input: header_input
73 header_box: header_box 72 header_box: header_box
74 orientation: "vertical" 73 orientation: "vertical"
75 BoxLayout: 74 BoxLayout:
76 id: header_box 75 id: header_box
77 size_hint: 1, None 76 size_hint: 1, None
81 HeaderWidgetCurrent: 80 HeaderWidgetCurrent:
82 plugin_info: root.plugin_info 81 plugin_info: root.plugin_info
83 size_hint: None, 1 82 size_hint: None, 1
84 width: self.height 83 width: self.height
85 on_release: root.selector.open(self) 84 on_release: root.selector.open(self)
86 TextInput:
87 id: header_input
88 background_normal: app.expand('{media}/misc/borders/border_hollow_light.png')
89 multiline: False
90 on_text_validate: root.onHeaderInput()
91 on_text: root.onHeaderInputComplete(*args)