I stumbled ypon a problem similar to the problem descibed at http://lists.wxwidgets.org/archive/wx-users/msg30386.html.
I am trying to get a pointer to a wxCalendarCtrl, and got a
wxControlPtr back, so I cannot call GetDate() or SetDate() on it.
What's that? and what should I do?
The environment is: Linux, GTK2, wxWidgets/wxPython 2.4.2.4.
This a dirty hack and it looks fragile. But works.
Oleg.
···
On Wed, Oct 13, 2004 at 06:38:32PM +0400, Oleg Broytmann wrote:
I stumbled ypon a problem similar to the problem descibed at http://lists.wxwidgets.org/archive/wx-users/msg30386.html.
I am trying to get a pointer to a wxCalendarCtrl, and got a
wxControlPtr back, so I cannot call GetDate() or SetDate() on it.
--
Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
I stumbled ypon a problem similar to the problem descibed at http://lists.wxwidgets.org/archive/wx-users/msg30386.html.
I am trying to get a pointer to a wxCalendarCtrl, and got a
wxControlPtr back, so I cannot call GetDate() or SetDate() on it.
What's that? and what should I do?
The environment is: Linux, GTK2, wxWidgets/wxPython 2.4.2.4.
wxWidgets implements an internal run-timetype ID system that wxPyton uses when possible to find the correct Python class to wrap around an unkown C++ pointer. In 2.4 wxCalendarCtrl did not implement the RTTI correctly, and since it would break binary compatibility it could not be fixed. It has been fixed in 2.5.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!