On Friday, August 05, 2011 11:43:12 am John Fabiani wrote: > On Friday, August 05, 2011 11:33:31 am John Fabiani wrote: > > On Friday, August 05, 2011 11:22:07 am John Fabiani wrote: > > > On Friday, August 05, 2011 11:00:52 am Jacek Kałucki wrote: > > > > Użytkownik John Fabiani napisał: > > > > > Hi, > > > > > openSUSE 11.3 , PYTHON 2.6.5, wxPython 2.8.11, latest Dabo > > > > > > > > > > I'm getting an error from dateTimePy2Wx(date) > > > > > > > > > > retVal = wx.DateTimeFromTimeT(mktime(date.timetuple())) > > > > > > > > > > from > > > > > agebox=dabo.ui.dDatePicker(self, Width=175,RegID="bornID", > > > > > ForceShowCentury = True, Value = datetime.date(1940,01,01)) > > > > > > > > > > When I set the Value I get an error message (not a traceback) > > > > > 2011-08-05 10:35:57 - ERROR - Could not set value of dDatePicker to > > > > > 1940-01-01. Error message: in method 'new_DateTimeFromTimeT', > > > > > expected argument 1 of type 'time_t' > > > > > > > > It seems I'm not old enough to figure it out :-) > > > > Try current commit please. > > > > > > New error from my svn > > > Could not convert all characters in > > > /home/johnf/dabo/dabo/ui/uiwx/dDatePicker.py when reading it as a utf-8 > > > encoded file. Replacing unmappable characters with ?'s so saving the > > > file may result in a corrupted file. You may want to right click on > > > the file and set encoding in the file's properties, or reopen it after > > > changing the Files / Default Encoding preference. > > > > When I try to set the value the month is off? > > > > i.e Value=datetime.date(1970,12,03) I get "08/03/1970" > > > > > > On windows I'm having trouble working with the date. On Linux I can just > > edit the date directly - on windows I have to either select the > > month,day, or year by using the mouse or arrows keys. One nice thing > > about the windows version is the I can't enter the day incorrectly. But > > of course the arrow keys are not the best to deal with moving between > > month,day, and year. The user I'm sure is expecting to use the tab key > > (as with dMaskTextBox). > > > > Johnf > > the Function wx.DateTimeFromDMY(date.day, date.month, date.year) > incorrectly returns the wrong month????? > > Johnf Could it be because the wrong starting month is set somewhere? Johnf
_______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
