[wxPython-users] Annoying problem with DatePickerCtrl.SetValue()
Robin Dunn
robin at alldunn.com
Tue Aug 1 09:31:30 PDT 2006
Kao Cardoso Felix wrote:
> On 8/1/06, *Robin Dunn* <robin at alldunn.com <mailto: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.
I can't duplicate the problem. Please make a small runnable sample app
that shows the problem for you and send it here.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list