def qObjectTree(root):
 childs = [root]
 for ch in pg.QtCore.QObject.children(root):
  childs += qObjectTree(ch)
 return childs

def qObjectTree ( root ) : childs = [ root ] for ch in pg . QtCore . QObject . children ( root ) : childs += qObjectTree ( ch ) return childs
return root and its entire tree of qobject children .