Greetings.
I’m using Python 2.5.2 and wx 2.8.7.1 (gtk2-unicode) on Hardy Heron Ubuntu (8.04).
When
I create a DatePickerCtrl and programmatically set the value of the
control, if I click on the drop-down the month, year and date in the
drop-down are “today” rather than the date set in the control.
This code demonstrates:
Start code
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, title=‘wxDatePickerCtrl issue’)
s = wx.BoxSizer(wx.VERTICAL)
frame.SetSizer(s)
dpc = wx.DatePickerCtrl(frame, style=wx.DP_ALLOWNONE | wx.DP_SHOWCENTURY | wx.DP_DROPDOWN)
s.Add(dpc)
dt = wx.DateTimeFromDMY(3, 1, 1959)
dpc.SetValue(dt)
frame.Show()
app.MainLoop()
End code
Run
that and the control will be set to February 3, 1959. But that’s not
the selected date in the controls when you click to get the drop-down.
Is there any known way around this, or should it be submitted as a bug?
Thanks!
– Barry
···
–
Get a free @hellokitty.com, @mymelody.com, or @kuririnmail.com email account
today at www.sanriotown.com, and enjoy 500MB of storage!
Check out our official blog @ http://blog.hellokitty.com