Hi there wizards,

I'm struggling with a dDateTextBox in my German environment:
- at first the date gets displayed in German format (dd.mm.yyyy),  
e.g. 31.12.2008 (that's clearly locale dependent, same as  
datetime.datetime.strftime(locale.nl_langinfo(locale.D_FMT)))
- the hotkey popup is always in English (ok, I could set ToolTipText  
myself, but for what do we have locales?)
- if I press a hotkey or leave the box, the displayed date gets  
switched to mm.dd.yyyy (12.31.2008)
- if I press another key, e.g. +, it tries to take the displayed date  
as dd.mm. and generates an error ("Invalid date specified")
- after that the hotkeys won't work any more

I couldn't find a hook for the date display format - I'd prefer ISO  
yyyy-mm-dd, because you can feed that directly to MySQL or the like,  
but any reliable format would do for the moment.

Perhaps it would make sense to base dDateTextBox on  
wx.DatePickerCtrl? (Didn't try yet if it would fit my needs.)

Otherwise I'd use named groups in the regular expressions for date  
parsing, that would make them more readable and  
dDateTextBox.strToDate would get much shorter.
And please account for locale.nl_langinfo(locale.D_FMT)! (locale is  
imported but never used!)

If you are too busy, I'll try to come up with a solution at the weekend.

Platform: Mac
Python Version: 2.4.4 on darwin
Dabo Version: Version 0.8.3; Revision 3946
UI Version: 2.8.7.1 on wxMac


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to