<|file_name|>uicommon.py<|end_file_name|><｜fim▁begin｜>def emptyLayout(layout):
    <|fim_middle|>

<｜fim▁end｜>
    for i in reversed(range(layout.count())):
        layout.itemAt(i).widget().setParent(None)