comparison cagou/core/utils.py @ 219:9faccd140119

plugin contact list: refactoring: - contacts are now displayed in a grid - they can be filtered thanks to FilterBehaviour - use the new update system of QuickContactList - a new "add a contact" button is visible, but not implemented yet.
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:26:15 +0200
parents 519b3a29743c
children 112ba3295f8f
comparison
equal deleted inserted replaced
218:30be583dbabc 219:9faccd140119
32 self._filter_anim = Animation(width = 0, 32 self._filter_anim = Animation(width = 0,
33 height = 0, 33 height = 0,
34 opacity = 0, 34 opacity = 0,
35 d = 0.5) 35 d = 0.5)
36 36
37 def do_filter(self, children, text, get_child_text, width_cb, height_cb, continue_tests=None): 37 def do_filter(self, children, text, get_child_text, width_cb, height_cb,
38 continue_tests=None):
38 """filter the children 39 """filter the children
39 40
40 filtered children will have a animation to set width, height and opacity to 0 41 filtered children will have a animation to set width, height and opacity to 0
41 @param children(kivy.uix.widget.Widget): widgets to filter 42 @param children(kivy.uix.widget.Widget): widgets to filter
42 @param text(unicode): filter text (if this text is not present in a child, 43 @param text(unicode): filter text (if this text is not present in a child,