def clearAll(layout, *args): """clears the selected text scroll list""" cmds.textScrollList(widgets[layout], e=True, ra=True)