Q1: wx.DP_SPIN don't change anything to the visual, why?
Q2: I set: self.datePicker.Bind( wx.EVT_DATE_CHANGED,
self.datePickerOnDateChanged )
but I remarked that any change triggers datePickerOnDateChanged,
even erasing a number from the date (calendar not deployed), so
is there another event I could use to wait for the definitive
date change, or shall I add a button for that?
JY
--
There's no such thing as a free lunch.
-- Milton Friendman
Q1: wx.DP_SPIN don't change anything to the visual, why?
The docs (at least for 2.9) state that it is not supported by the generic date picker, and I think that the generic date picker is used by default on all platforms except wxMSW.
Q2: I set: self.datePicker.Bind( wx.EVT_DATE_CHANGED,
self.datePickerOnDateChanged )
but I remarked that any change triggers datePickerOnDateChanged,
even erasing a number from the date (calendar not deployed), so
is there another event I could use to wait for the definitive
date change, or shall I add a button for that?
Probably. Or wait until later to fetch and do something with the date value, such as when focus moves to another control, or when the dialog is closed (if you are using a dialog) or whatever.
The docs (at least for 2.9) state that it is not supported by the
generic date picker,
I read that, this is why I switched from wx.GenericDatePickerCtrl
(generated by wxFormBuilder) to wx.DatePickerCtrl.
and I think that the generic date picker is used by
default on all platforms except wxMSW.
Do you mean the 2 widgets the same under Linux??
...
Probably. Or wait until later to fetch and do something with the date
value, such as when focus moves to another control, or when the dialog
is closed (if you are using a dialog) or whatever.
Ok, I'll add a button.
···
On Tue, 29 Nov 2011 11:45:37 -0800 Robin Dunn <robin@alldunn.com> wrote: