def month_day_gen(max_val, target):
    """generate entries in dropdown menu for the number of days and number of
    months"""
    tup = ()
    for i in range(1, max_val + 1):
        tup += (target.add_item(str(i), i),)
    return tup