Mercurial > libervia-desktop-kivy
comparison cagou/core/utils.py @ 390:3d009fec34da
core (utils): fixed FilterBehavior use of "children" attribute
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Feb 2020 21:16:21 +0100 |
parents | 1da3c379205b |
children |
comparison
equal
deleted
inserted
replaced
389:442756495a96 | 390:3d009fec34da |
---|---|
53 if any of the callable return True, the child is skipped (i.e. not filtered) | 53 if any of the callable return True, the child is skipped (i.e. not filtered) |
54 """ | 54 """ |
55 text = text.strip().lower() | 55 text = text.strip().lower() |
56 filtering = len(text)>len(self._filter_last) | 56 filtering = len(text)>len(self._filter_last) |
57 self._filter_last = text | 57 self._filter_last = text |
58 for child in self.layout.children: | 58 for child in children: |
59 if continue_tests is not None and any((t(child) for t in continue_tests)): | 59 if continue_tests is not None and any((t(child) for t in continue_tests)): |
60 continue | 60 continue |
61 if text in get_child_text(child).lower(): | 61 if text in get_child_text(child).lower(): |
62 self._filter_anim.cancel(child) | 62 self._filter_anim.cancel(child) |
63 for key, method in (('width', width_cb), | 63 for key, method in (('width', width_cb), |