Here it is, btw, the message where this bug has been clearly mentioned:
=============================================================================
Subject: Re: [wxPython-users] wxPyTypeCast, FindWindowById, and
wxCalendarCtrl
From: *Robin Dunn*
Date: Thu, *23 Jan 2003* 10:11:40 -0800...
I'll add it to my todo list. A better fix would be to add
import wx
wx.wxCalendatCtrlPtr = wxCalendarCtrlPtrto calendar.py. That way you don't have to import calendar all the time
even if you don't use it.=============================================================================
And it was only 1 week ago... I guess, the fixed version will not be so
soon...Uhh, what shall I do now? Make three controls instead of one? Pity.
Just fix it by yourself in your script:
from wxPython import wx
wx.wxCalendarCtrlPtr = wxCalendarCtrlPtr
self.calendar_ctrl = wxPyTypeCast(XRCCTRL(self.date_dialog,
"calendar_ctrl"),
"wxCalendarCtrl")
This works for me.
Alberto