Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
to do app help
#1
basically im trying to build a to do app. i want to create a GUI app that shows the current month and every day is a button that opens a new GUI with the title the name and date of the day and you generate a bunch of plus buttons that opens a new window which will create a reminder for a to do app. Ideally at a specific time and date an alarm will ring even if the application is stopped. i can find how to boot an application on startup but im still stuck on how to create the first interface that displays the current month and each day is a button. please help if possible
Reply
#2
(Jan-21-2025, 01:31 PM)jacksfrustration Wrote: t im still stuck on how to create the first interface that displays the current month and each day is a button
It already exists of course. In tkinter for example there is a module named tkcalendar. There are other solutions such as this one.

You didn't tell us which GUI package you want to use, nor which devices you target for your program.
« We can solve any problem by introducing an extra level of indirection »
Reply
#3
(Jan-21-2025, 01:43 PM)Gribouillis Wrote:
(Jan-21-2025, 01:31 PM)jacksfrustration Wrote: t im still stuck on how to create the first interface that displays the current month and each day is a button
It already exists of course. In tkinter for example there is a module named tkcalendar. There are other solutions such as this one.

You didn't tell us which GUI package you want to use, nor which devices you target for your program.

tkinter is ideal to be honest. thanks for your help. i looked it up but i can't find to alter it to trigger a particular function whenever pressing on a date. can you help furthermore?
Reply
#4
Did you read the documentation? It is very good.

https://tkcalendar.readthedocs.io/en/sta...ation.html

Calendar Events looks interesting. In particular
Quote:A <<CalendarSelected>> event is generated each time the user selects a day with the mouse.
You can see how the event is used by looking at the tkcalendar code. DateEntry must use this event, so I looked there:

https://github.com/j4321/tkcalendar/blob...teentry.py
Quote:173 self.calendar.bind('<<CalendarSelected>>', self._select)
self.calendar is an instance of Calendar. self._select is the method/function called when a date is selected.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020