From: Kevin A. <al...@se...> - 2004-09-13 22:13:16
|
This is just an FYI that I plan to have the Calendar component support the new wxPython datetime methods that will be in wxPython 2.5.2.9 and later. I've already checked in some changes so that calendar events now have a date attribute and there is also a date attribute. If you have one of the wxPython 2.5.2.9 daily builds installed then you can see the methods at work in the widgets sample: >>> comp.calCalendar.date datetime.date(2004, 9, 13) >>> import datetime >>> comp.calCalendar.date = datetime.date(2004, 9, 20) http://starship.python.net/crew/robind/wxPython/daily/20040910/ CHANGES.html "Extended the wx.calendar.CalendarCtrl class with methods that get/set a Python datetime or date object. (These will only work with Python 2.3+) The methods are PySetDate, PyGetDate, PySetLowerDateLimit, PySetUpperDateLimit, PySetDateRange, PyGetLowerDateLimit, and PyGetUpperDateLimit. Also, CalendarEvent was extended with PySetDate and PyGetDate methods." http://docs.python.org/lib/module-datetime.html ka |