Oliver Walczak wrote:
Dear coders,
There is a bug in wx.lib.masked.TimeCtrl. When setting wx.Locale() to
wx.LANGUAGE_GERMAN (I only tested this) then the Format call in
timectrl.py, line 368 fails.Further I did not find out how to change the information strings in
wx.ProgressDialog (elapsed time, estimated time, etc.). Wouldn't it
be a nice way to have them going with the current locale setting?Best regards
Oliver
I actually tried to cover this case in the code when the issue was raised
before; the code was supposed to automatically assume 24 hour format and
disallow a 12-hour format for timectrls in any locale that doesn't support
strftime('%p'). (This was the best I could do given my limited
understanding
of the world's other timezones and formats.)
However, apparently either things have changed in wx.DateTime, so that
it raises an exception instead of returning an empty string when asked
to .Format('%p') or somehow the behavior changes if you use wx.Locale()
vs. locale.setlocale().
In any event, I've added some try/except handlers around the calls that
do the testing, so that it does what I intended. I'll submit a patch
to Robin shortly.
Regards,
/Will
ยทยทยท
_____________________________________________________________________
William Sadkin
Parlance Corporation
1-888-700-NAME