Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

is there anyway of changing this program to a flet program and also add a notification element? [closed]

$
0
0
import datetimedef calculate_period_length(start_date, end_date):    period_length = (end_date - start_date).days + 1    return period_lengthdef track_cycle():    cycle_length = 28    last_period_date = input("Enter the start date of your last period (yyyy-mm-dd): ")    year, month, day = map(int, last_period_date.split("-"))    last_period_date = datetime.date(year, month, day)    next_period_date = last_period_date + datetime.timedelta(days=cycle_length)    today = datetime.date.today()    while next_period_date <= today:        print("Your next period is on {}.".format(next_period_date))        last_period_date = next_period_date        next_period_date = last_period_date + datetime.timedelta(days=cycle_length)    print("You are not expecting your next period for at least {} days.".format((next_period_date - today).days))    print("Your next period date is: ", format(next_period_date))    pass

can someone PLEASE TURN THIS PROGRAM INTO A FLET APP. how do i get the input value and display it?? I AM IN DESPARATE NEED OF HELP

i just need the user to enter the start of their last period and add 28 to it when the user clicks the button. after that i need it to automatically set a reminder and send a notification which i will work on later but if you can help PLEASE DOOO.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>