Here’s the relevant snippet from uiApp.OnInit:

        def OnInit(self):
                app = self.dApp
                # As of wx3, locale must be set using wx.Locale; this can only 
be created after the wx.App's initialization, so locale
                # is moved here (also note setting locale is no longer 
toolkit-agnostic, so other toolkit bindings would need to handle it internally)
                if dabo.loadUserLocale:
                        self.locale = wx.Locale(wx.LANGUAGE_DEFAULT)

This seemed to be fine when placed in __init__ as well, so that’s another 
option. I didn’t even see the locale issue manifest until I started testing on 
Windows, but the above should work on any platform.

Neil

> On Feb 3, 2015, at 7:09 AM, Werner <[email protected]> wrote:
> 
> On 2/3/2015 15:01, Paul McNett wrote:
>> On 2/3/15 5:24 AM, Ed Leafe wrote:
>>> On Feb 3, 2015, at 7:14 AM, Paul McNett <[email protected]> wrote:
>>> 
>>>> Ok, if you do a 'git grep setlocale' you'll find that call in dLocalize.py 
>>>> . It would be wrong to instantiate wxLocale objects there (because it is 
>>>> outside of the UI layer). Hopefully it will be acceptable to leave 
>>>> dLocalize alone and set up wxLocale inside setupUI() or something...
>>>> 
>>>> In the meantime you could comment out that setlocale() call to verify that 
>>>> this is the source of the problem.
>>> 
>>> Perhaps in the init of uiApp we could create a wxLocale to match the 
>>> current setting from getlocale() to ensure that they are in sync.
>> 
>> That's what I was thinking. But first we need to make sure this is even the 
>> source of the problem.
>> 
>> By 'we' I mean Werner and John. :)
> changing setttings.loadUserLocale = False, gets past the problem, so it seems 
> the source of the problem.
> 
> Will look into the John's and Neil's solution.
> 
> Werner
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message: http://leafe.com/archives/byMID/[email protected]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to