wx.DatePickerCtrl and style=wx.DP_ALLOWNONE (wxPython 2.7.2.0)
Frank Niessink
frank at niessink.com
Sun Dec 3 07:53:04 PST 2006
Hi,
Just in case there will be a bugfix release on the 2.7.2 branch. This:
import wx
app = wx.App(None)
frame = wx.Frame(None)
dpc = wx.DatePickerCtrl(frame, style=wx.DP_ALLOWNONE)
gives this traceback:
Traceback (most recent call last):
File "dpc.py", line 8, in ?
dpc = wx.DatePickerCtrl(frame, style=wx.DP_ALLOWNONE)
File "c:\Program
Files\Python24\lib\site-packages\wx-2.7.2-msw-unicode\wx\_controls.py",
line 6373, in __init__
_controls_.DatePickerCtrl_swiginit(self,_controls_.new_DatePickerCtrl(*args,
**kwargs))
wx._core.PyAssertionError: C++ assertion "(0 < day) && (day <=
GetNumberOfDays(month, year))" failed at
..\..\src\common\datetime.cpp(1423) in wxDateTime::Set()
: Invalid date in wxDateTime::Set()
on wxPython 2.7.2.0 (Python 2.4, Windows XP). wxPython 2.8 is ok.
Cheers, Frank
More information about the wxpython-users
mailing list