johnf schrieb: > On Wednesday 29 April 2009 04:48:09 am Sibylle Koczian wrote: >> Hello, >> >> in my application I've got a dDateTextBox connected to a data field >> which is NULL when the application starts and which is then filled in, >> usually with a date some days past. This works correctly (the right day >> gets into the database table), if I enter the date directly, not using >> the shortcuts. It works correctly if I enter 'T' and then '-' as often >> as necessary. >> >> But if I enter 'C' to open the popup calendar and choose the day there, >> then I get the chosen date into the dDateTextBox, but the current date >> into the database table. >> >> Database is Firebird, Dabo version: >> >> Platform: GTK >> Python Version: 2.6 on linux2 >> Dabo Version: Version 0.9.1; Revision 5191M >> UI Version: 2.8.9.2 on wxGTK (gtk2) >> >> Same thing on windows. >> >> What sort of information should I add? Should I try the same with a >> SQLite database? >> >> Greetings, >> Sibylle > > What happens if you double click on the control? Does the calendar pop-up? > And if you select a date is that date stored in the DB? >
Double clicking gives this: s...@elend:~/bin/haushalt/pflichten_aktuell> ./main.py Traceback (most recent call last): File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 625, in __onWxMouseLeftDoubleClick self.raiseEvent(dEvents.MouseLeftDoubleClick, evt) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dPemMixin.py", line 949, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "/home/sib/svn_src/dabo_trunk/dabo/lib/eventMixin.py", line 93, in raiseEvent bindingFunction(event) File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dDateTextBox.py", line 123, in __onDblClick self.showCalendar() File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dDateTextBox.py", line 131, in showCalendar cp.cal.Date = self.Value File "/home/sib/svn_src/dabo_trunk/dabo/ui/uiwx/dCalendar.py", line 185, in _setDate self.PySetDate(val) File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/calendar.py", line 507, in PySetDate self.SetDate(_pydate2wxdate(date)) File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/calendar.py", line 577, in _pydate2wxdate assert isinstance(date, (datetime.datetime, datetime.date)) AssertionError Greetings, Sibylle -- Sibylle Koczian _______________________________________________ Post Messages to: Dabo-users@leafe.com 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/49f85d08.1040...@t-online.de