def get_index(list_wid):
    """
    Returns first number of currently selected
    text in supplied list widget, eg from
    3 [ascsdf] sdf sdf
    would return the integer 3
    """
    try:
        str_index = str(list_wid.item(list_wid.currentIndex().row()).text())
        return int(str_index.split()[0])
    except:
        print('ERROR get_index', list_wid.objectName())
