[wxPython-users] Annoying problem with DatePickerCtrl.SetValue()

Kao Cardoso Felix kcfelix at gmail.com
Tue Aug 1 08:51:54 PDT 2006


On 8/1/06, Robin Dunn <robin at alldunn.com> wrote:

> In what way doesn't it work?


It doesn't work in the way that when I set the value to the date I loaded
from the configuration the picker will keep it's date to the default value
(the date of the current day).
If I load the date in another way (as I have specified in the original mail)
the picker value will change.

What is the date being parsed and what format is it in?


The date being parsed depends on the last saved value of the picker. As I
said before I guaranteed this to be right, since I looked into the value of
the the_date variable and it's carrying the date it's supposed to.
Anyway, I'm using the default date format that I get by using
self.initialDatePicker.GetValue().Format() and then parsing it with the
ParseDateTime()  function, that will return the 17 code.
In my understanding this should work properly and actually seems to be
working as the debugger will give show the correct date loaded internally.


> > Maybe it is because the _controls_ module have no source code, but it is
> > just a guess.
>
It's an extension module so it is C/C++ code.


That explains :-)

I hope that my explanations are enough. I'm realy annoyed with this problem
cause it seems to have no logic at all, at least to me :-(
Maybe I'm losing some very subtle detail, so If you could help enlighten the
matter a little more.

Thanks for your attention!

Best regards
-- =

Kao Cardoso F=E9lix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200608=
01/65cf9941/attachment.htm


More information about the wxpython-users mailing list