.. Automatically generated file - do not modify.

.. function:: AddToSet(set, value)
    
    Adds `value` to `set`.
    
    `set`
        The set to add to. This may be a python set or list, in which
        case the value is appended to the list.
    `value`
        The value to add or append.

.. function:: RemoveFromSet(set, value)
    
    Removes `value` from `set`.
    
    `set`
        The set to remove from. This may be a set or list.
    `value`
        The value to add or append.

.. function:: SetDict(dict, key, value)
    
    Causes the value of `key` in `dict` to be set to `value`.

.. function:: SetField(object, field, value)
    
    Causes the a field on an object to be set to a given value.
    `object` is the object, `field` is a string giving the name of the
    field to set, and `value` is the value to set it to.

.. function:: SetScreenVariable(name, value)
    
    Causes the variable `name` associated with the current screen to
    be set to `value`.

.. function:: SetVariable(variable, value)
    
    Causes `variable` to be set to `value`.

.. function:: ToggleDict(dict, key, true_value=None, false_value=None)
    
    Toggles the value of `key` in `dict`. Toggling means to invert the
    value when the action is performed.
    
    `true_value`
        If not None, then this is the true value we use.
    `false_value`
        If not None, then this is the false value we use.

.. function:: ToggleField(object, field, true_value=None, false_value=None)
    
    Toggles `field` on `object`. Toggling means to invert the boolean
    value of that field when the action is performed.
    
    `true_value`
        If not None, then this is the true value we use.
    `false_value`
        If not None, then this is the false value we use.

.. function:: ToggleScreenVariable(name, true_value=None, false_value=None)
    
    Toggles the value of the variable `name` in the current screen.
    
    `true_value`
        If not None, then this is the true value we use.
    `false_value`
        If not None, then this is the false value we use.

.. function:: ToggleSetMembership(set, value)
    
    Toggles the membership of `value` in `set`. If the value is not
    in the set, it's added. Otherwise, it is removed.
    
    Buttons with this action are marked as selected if and only if the
    value is in the set.
    
    `set`
        The set to add to or remove from. This may be a set or list. In the
        case of a list, new items are appended.
    `value`
        The value to add or append.

.. function:: ToggleVariable(variable, true_value=None, false_value=None)
    
    Toggles `variable`.
    
    `true_value`
        If not None, then this is the true value we use.
    `false_value`
        If not None, then this is the false value we use.

