0

I need to make a program in python 3.x with tkinter, that will make a calendar appear on the top of the screen that will change every single week. I'm a little lost on where to start (the solution likely incorporates datetime import) but I don't know how to make it update every week. If anyone has any tips on where to start that'd be great.

Thanks in advance!

Delrius Euphoria
  • 14,910
  • 3
  • 15
  • 46
  • 1
    take a look on this https://stackoverflow.com/questions/4443786/how-do-i-create-a-date-picker-in-tkinter – Thingamabobs Jul 27 '20 at 22:04
  • thanks @Atlas435 but the link provided seems to lead a tkcalendar date picker application; I need to display the week's dates at the top and have the displayed dates change every week. – Sannath Mathapathi Jul 28 '20 at 00:26
  • You can define a function to check whether current day is changed from `Saturday` to `Sunday` or `Sunday` to `Monday` (depends on what is the first day of week), then update the calendar. Then use `after()` to call the function periodically. – acw1668 Jul 28 '20 at 03:14
  • as for starter you can get system time with `time` module and then say `time.ctime()` will return the system day and time, u can use the indexing to return the day only, and then check if the day `==` sunday and keep on changing the calendar :D – Delrius Euphoria Jul 28 '20 at 05:20

0 Answers0