def comboValue(widget):
    """
    Retrieve the value of a combo box as a python object
    """
    index = widget.currentIndex()
    if index == -1:
        return None
    return widget.itemData(index)