def get_int_from_str(txt):
    """
    converts txt to a integer number and returns this number
    return None if txt is not a number
    """
    try:
        number = int(txt)
        if number is not 0:
            return number
    except:
        return None
