def get_combobox_selection(self, widget, type = 'id'):
        model = widget.get_model()
        active = widget.get_active()

        if type != 'id':
            return active

        if active < 0:
            return None
        return model[active][1] #0 is name, 1 is id
get the current id selected, if type not id then get the current selected index
dataset/ETHPy150Open lionheart/TimeTracker-Linux/libs/UI.py/uiCreator.get_combobox_selection