def greyOut(checkBox, items, checked=True):
    """
    greyOut makes items unavailable for the user by greying them out
    """
    if type(checkBox).__name__ == 'QCheckBox':
        if checkBox.isChecked():
            for item in items:
                item.setDisabled(not checked)
        else:
            for item in items:
                item.setDisabled(checked)
    elif type(checkBox).__name__ == 'QPushButton':
        for item in items:
            item.setDisabled(not checked)
