Hi,
I am doing a bit of work on my app again to try to get it working with
Phoenix. With the report designer I see this error:
File "d:\devMine\twcbv5\twcbsrc\controllers\fDaboDesign.py", line 231,
in
main()
File "d:\devMine\twcbv5\twcbsrc\controllers\fDaboDesign.py", line 158,
in main
On 2/3/15 3:45 AM, Werner wrote:
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(LC_ALL,
NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1449) in
wxLocale::GetInfo(): You probably called setlocale() directly instead of
using wxLocale and now there is a mismatch between C/C++ and
On Feb 3, 2015, at 7:14 AM, Paul McNett 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
Yes there is a fix that Neil came up with - his notes:
Resolved the locale problem by moving it from dApp's __init__ to uiApp's
OnInit, because wx3 requires using wx.Locale which can't be initialized
until after the app is set up. This should resolve the problem on osx
and windows
I'll send
On 2/3/15 5:24 AM, Ed Leafe wrote:
On Feb 3, 2015, at 7:14 AM, Paul McNett 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 l
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 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)
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
Hi Neil,
On 2/4/2015 3:47, Neil Flowers wrote:
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
On Feb 3, 2015, at 8:47 PM, Neil Flowers wrote:
>
> 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
On 02/04/2015 05:30 AM, Ed Leafe wrote:
On Feb 3, 2015, at 8:47 PM, Neil Flowers wrote:
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
Hi,
On 2/4/2015 14:30, Ed Leafe wrote:
On Feb 3, 2015, at 8:47 PM, Neil Flowers wrote:
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
On 2/4/15 6:51 AM, Werner wrote:
Hi,
On 2/4/2015 14:30, Ed Leafe wrote:
On Feb 3, 2015, at 8:47 PM, Neil Flowers wrote:
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 creat
On 02/04/2015 07:57 AM, Paul McNett wrote:
One thing that may bite us is if the existing locale is garbage
collected but then the new language isn't supported, perhaps (not sure
here) we should just use whatever the existing locale is instead of
defaulting to wx's default.
But then wxPython
On 2/4/15 9:10 AM, john wrote:
On 02/04/2015 07:57 AM, Paul McNett wrote:
One thing that may bite us is if the existing locale is garbage
collected but then the new language isn't supported, perhaps (not sure
here) we should just use whatever the existing locale is instead of
defaulting to wx's
I agree that wxPython's decision to require specialized handling of locale
seems a little questionable, but they may have had good reasons (I didn't look
into them). I used wx.LANGUAGE_DEFAULT because it is supposed to derive the OS'
locale and at the time I was thinking this was what the code w
15 matches
Mail list logo