Hi, it's been quite the last couple of days.
I have these dates in my sqlite db, their default values are Null. So in
my form they are displayed as empty dDateTextBox (es), when I press 'c'
the calendar appears and I choose a date. When the dDateTextBox has a
value if I double click on the control the calendar will appear. Now,
when my date field values are Null and I double click on them I get an
exception :
------------------------------------------------------------------------------------------------------
>python main.py
Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\dabo\dabo\ui\uiwx\dPemMixin.py",
line 625,
 in __onWxMouseLeftDoubleClick
    self.raiseEvent(dEvents.MouseLeftDoubleClick, evt)
  File "C:\Python25\lib\site-packages\dabo\dabo\ui\uiwx\dPemMixin.py",
line 949,
 in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
**kwargs)
  File "C:\Python25\lib\site-packages\dabo\lib\eventMixin.py", line 93,
in raise
Event
  File
"C:\Python25\lib\site-packages\dabo\dabo\ui\uiwx\dDateTextBox.py", line 1
26, in __onDblClick
    self.showCalendar()
  File
"C:\Python25\lib\site-packages\dabo\dabo\ui\uiwx\dDateTextBox.py", line 1
40, in showCalendar
    cp.cal.Date = self.Value
  File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dCalendar.py", line
185, in _
setDate
  File
"C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\calendar.py", line 5
07, in PySetDate
    self.SetDate(_pydate2wxdate(date))
  File
"C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\calendar.py", line 5
77, in _pydate2wxdate
    assert isinstance(date, (datetime.datetime, datetime.date))
AssertionError
------------------------------------------------------------------------------------------------------



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to