def getChildCount(elem):
    count = 0
    child = elem.firstChild
    while child:
        if child.nodeType == 1:
            count += 1
        child = child.nextSibling
    return count
This function is called when a layout is needed by a trigger.
dataset/ETHPy150Open anandology/pyjamas/library/gwt/DOM.py/getChildCount--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/uix/layout.py/Layout.do_layout