ui_controls.py
def _make_iter(self):
        """ iterating over a layout only yields controls
        """        
        if not self._is_sorted:
            self._items = sorted(self._items, key=lambda item: item._layer)
            self._is_sorted = True

        for item in self._items:
            if isinstance(item, BaseControl):
                if hasattr(item, "_controls"):
                    yield item
                    if item._visible:                       
                        for ctrl in item._controls:                        
                            yield ctrl
                    else:
                        continue                            
                else:
                    yield item
            else:
                for val in item:
                    yield val
 iterating over a layout only yields controls
        
iterating over a layout only yields controls
iterating over a layout only yields controls
def _make_iter(self):
        if not self._is_sorted:
            self._items = sorted(self._items, key=lambda item: item._layer)
            self._is_sorted = True
        for item in self._items:
            if isinstance(item, BaseControl):
                if hasattr(item, "_controls"):
                    yield item
                    if item._visible:                       
                        for ctrl in item._controls:                        
                            yield ctrl
                    else:
                        continue                            
                else:
                    yield item
            else:
                for val in item:
                    yield val
def _make_iter ( self ) : if not self . _is_sorted : self . _items = sorted ( self . _items , key = lambda item : item . _layer ) self . _is_sorted = True for item in self . _items : if isinstance ( item , BaseControl ) : if hasattr ( item , "_controls" ) : yield item if item . _visible : for ctrl in item . _controls : yield ctrl else : continue else : yield item else : for val in item : yield val
iterating over a layout only yields controls
iterating over a layout only yields controls
""" iterating over a layout only yields controls
        """
self