Dec-24-2019, 11:32 AM
Thank's Denni!
That will do the trick!
There are something that i am trying to achieve. I want the
I have used this very simple program
That will do the trick!
There are something that i am trying to achieve. I want the
print('Meddelande : Nästa besök : [',self.lstDates.currentItem().text(),']')to print out
next_visit = DateList[DateList.index('CurrentRowChanged')+10]So that the program take the input(currentrowchanged)and return 10 steps forward in the list.
I have used this very simple program
#A list with possible dates for a visit visit_dates = ["2019-10-14","2019-10-15","2019-10-16","2019-10-17","2019-10-18","2019-10-21","2019-10-22","2019-10-23","2019-10-24","2019-10-25","2019-11-07","2019-11-08","2019-11-14","2019-11-15","2019-11-21","2019-11-28","2019-11-29","2019-12-05","2019-12-06","2019-12-12","2019-12-13","2019-12-16","2019-12-17","2019-12-18","2019-12-19","2020-01-15","2020-01-16","2020-01-23","2020-01-24","2020-01-30","2020-01-31","2020-02-06","2020-02-07","2020-02-13","2020-02-14","2020-02-17","2020-02-18","2020-02-19","2020-02-20","2020-02-21","2020-03-02","2020-03-03","2020-03-04","2020-03-05","2020-03-06","2020-03-09","2020-03-10","2020-03-11","2020-03-12","2020-03-13","2020-03-19","2020-03-20","2020-03-26","2020-03-27","2020-04-02","2020-04-03","2020-04-09","2020-04-24","2020-04-30","2020-05-07","2020-05-08","2020-05-15","2020-05-25","2020-05-26","2020-05-27","2020-05-28","2020-05-29","2020-06-01","2020-06-02","2020-06-03","2020-06-04","2020-06-05"] date = (input("When was the last visit?: Use YYYY-MM-DD syntax: ")) print() #When you done a visit and you done the input, next visit prints out in console , it should be aproximative every 10 day print("Well the next visit should be at: "+visit_dates[visit_dates.index(date)+10])The next step in my program would be to return "next_visit" in a popup window