def METHOD_NAME(self, options, combobox, var, properties):
    r"""Safely sets a combobox based on a variable, or disables the
    combobox if the value is not among the combobox options.
    Parameters
    ----------
    options
        A dictionary with options
    combobox
        QComboBox
    var
        A variable name
    properties
        A properties dict
    """
    for key, val in options.items():
        if val == properties[var]:
            i = combobox.findText(key)
            combobox.setCurrentIndex(i)
            combobox.setEnabled(True)
            return
    combobox.setEnabled(False)