I think you need to keep a reference to the returned locale object.
···
-----Original Message-----
From: Boštjan Mejak
Sent: 30 Jun 2012 14:38:43 GMT
To: wxPython Mailing List
Subject: [wxPython-users] Set locale the wxPython way
I prefer wxPython code over Python code. I was wondering how to set a new locale in a script the wxPython way. I know about the Python way of importing the locale module and then using it to set a new locale.
How can I set a new locale using wxPython and not Python?
I was thinking in the terms of wx.Locale(wx.LANGUAGE_GERMAN). Is this piece of code enough to change the current locale to German locale? Or are there more hacks involved?
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en