I’m trying to set the selected date so that it is always the current day. How would I go about this?
Currently if I let the widget sit for more than a day, the selected date doesn’t update. Thus the date would be behind. How would I go about changing the selected date, so that it’s always up to date?
you could set a timer (
wx.Timer) instance to produce awx.EVT_TIMERevery several few seconds/minutes and bind the event to a method in charge of updating the calendar with the current date (wx.DateTime_Now()) if required.Here you have a minimal working demo code (try to change the date: it will go back to the current date after a second):