Well, no more segfault, but I am still getting the error message in
Linux (ubuntu 7.04). If I install support for the language it goes
away. Any other way of getting rid of it?
···
2007/4/9, ianaré sévi <ianare@gmail.com>:
That did it, thank you.
2007/4/5, Robin Dunn <robin@alldunn.com>:
> Make sure that you create the app object before trying to create the
> Locale objects. Also, because of the way that the C++ locale objects
> work and how that interacts with Python's garbage collection, you'll
> want to destroy the first locale object before assigning the new one to
> the same variable, something like this:
>
> mylocale = wx.Locale(wx.LANGUAGE_WHATEVER, wx.LOCALE_LOAD_DEFAULT)
> if not wx.Locale.IsOk(mylocale):
> del myLocale
> mylocale = wx.Locale(wx.LANGUAGE_DEFAULT, wx.LOCALE_LOAD_DEFAULT)
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
--
- ianaré sévi
Here's how I did it. Should be OK right? Thanks for the help.
# set logging off for this call
wx.Log.SetLogLevel(0)
mylocale = wx.Locale(wx.LANGUAGE_WHATEVER, wx.LOCALE_LOAD_DEFAULT)
wx.Log.SetLogLevel(1000)
wx.LANGUAGE_WHATEVER being replaced by something that actually works of course!
···
2007/4/10, Robin Dunn <robin@alldunn.com>:
You can disable error logging. This can be done temporarily using
wx.LogNull, or you can set the level of messages that should be logged
or not logged, like this:
wx.Log.SetLogLevel(wx.LOG_FatalError)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
--
- ianaré sévi