def get_selected_rows(listCtrl: wx.ListCtrl) -> list:
    """    Gets the selected items for the list control.
    Selection is returned as a list of selected indices,
    low to high.
    """
    selection = []
    index = listCtrl.GetFirstSelected()
    while index >= 0:  # GetFirstSelected & GetNextSelected return -1 if there is nothing selected
        selection.append(index)
        index = listCtrl.GetNextSelected(index)

    return selection