2006-09-30 | paulb | raw files shortlog changelog graph | [project @ 2006-09-30 17:44:05 by paulb] Deal with None as a result from children (seen with PyQt 3.16). | |
XSLForms/Resources/PyQtResources.py (file) |
1.1 --- a/XSLForms/Resources/PyQtResources.py Sat Jun 21 01:40:18 2008 +0200 1.2 +++ b/XSLForms/Resources/PyQtResources.py Sat Sep 30 17:44:05 2006 +0000 1.3 @@ -82,7 +82,7 @@ 1.4 found = widget.child(name) 1.5 if found: 1.6 widgets.append(found) 1.7 - for child in widget.children(): 1.8 + for child in widget.children() or []: 1.9 widgets += self.find_widgets(child, name) 1.10 return widgets 1.11