Import 2017-06-07 23:51:09: master 4bf5af4e

Author Committer Branch Timestamp Parent
jcfr jcfr master 2016-03-03 12:48:36 master 52b12fa0
Changeset

ENH: slicer.util.findChildren: Change behavior to an "and" filter

As discussed in [1], this commit changes the behavior so that ALL
parameters (name, text, title and className) are considered when checking
a descendant widget. Prior to this change, the widget was considered
"matched" as soon as the FIRST non-False parameter was matching.

[1] http://slicer-devel.65872.n3.nabble.com/Changing-the-behavior-of-slicer-util-findChildren-td4036266.html

Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: jonieva <jorgeonieva@gmail.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24957 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/Python/slicer/util.py Diff File