DatePickerCtrl does not work with locale

43 views
Skip to first unread message

Fabio Spadaro

unread,
Aug 6, 2010, 6:57:20 PM8/6/10
to wxPytho...@googlegroups.com
It seems DatePickerCtrl not feel that the local set.
In my case, if imposed on the local LANGUAGE_ENGLISH_US
calendar is set to Italian.
It works if I use instead GenericDatePickerCtrl but in my grid I want to continue using the
DatePickerCtrl for custom cell editor.
Any ideas or workaround?
Attached script.

python 2.6.4
M$ Vista
wxPython 2.8.11.0
--
Fabio Spadaro
www.fabiospadaro.com
DatePickerCtrl.py

Robin Dunn

unread,
Aug 7, 2010, 12:40:51 PM8/7/10
to wxpytho...@googlegroups.com
On 8/6/10 3:57 PM, Fabio Spadaro wrote:
> loc = wx.Locale(wx.LANGUAGE_ENGLISH_US)
>

You need to save a reference to the locale, otherwise it is reset to the
previous locale when this variable is deleted.

--
Robin Dunn
Software Craftsman
http://wxPython.org

Fabio Spadaro

unread,
Aug 7, 2010, 3:04:33 PM8/7/10
to wxpytho...@googlegroups.com
Hi.

2010/8/7 Robin Dunn <ro...@alldunn.com>

I set self.loc instead loc but does not work.I did not understand what the problem.

--
Fabio Spadaro
www.fabiospadaro.com

Fabio Spadaro

unread,
Aug 7, 2010, 3:24:47 PM8/7/10
to wxpytho...@googlegroups.com
Hi,

2010/8/7 Robin Dunn <ro...@alldunn.com>

Opened a ticket 5 years ago: Ticket #2494 (DatePickerCtrl doesn't obey Locale)
In the meantime the bug has been fixed ?


--
Fabio Spadaro
www.fabiospadaro.com

Robin Dunn

unread,
Aug 9, 2010, 1:34:17 PM8/9/10
to wxpytho...@googlegroups.com
On 8/7/10 12:24 PM, Fabio Spadaro wrote:
> Hi,
>
> 2010/8/7 Robin Dunn <ro...@alldunn.com <mailto:ro...@alldunn.com>>

>
> On 8/6/10 3:57 PM, Fabio Spadaro wrote:
>
> loc = wx.Locale(wx.LANGUAGE_ENGLISH_US)
>
>
> You need to save a reference to the locale, otherwise it is reset to
> the previous locale when this variable is deleted.
>

>


> Opened a ticket 5 years ago: Ticket #2494

> In the meantime the bug has been fixed ?

If the ticket is still open then probably not.

Reply all
Reply to author
Forward
0 new messages