[wxpython-dev] ANNOUNCE: wxPython 2.8.8.1

Robin Dunn robin at alldunn.com
Mon Jul 21 09:42:19 PDT 2008


Werner F. Bruhin wrote:
> Robin,
> 
> Is there some change with wx.FileConfig in 2.8.8.1?
> 
> I am getting this exception trying to start Boa and this worked with 
> 2.8.8.0 and I just tested with 2.8.7.1 which works too.
> 
> Traceback (most recent call last):
>  File "C:\Python25\Lib\site-packages\boa\Boa.py", line 271, in <module>
>    import Preferences, Utils
>  File "C:\Python25\Lib\site-packages\boa\Preferences.py", line 174, in 
> <module>
> 
>    c = wx.FileConfig(localFilename=file, style= wx.CONFIG_USE_LOCAL_FILE)
>  File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_misc.py", 
> line 3313
> , in __init__
>    _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, **kwargs))
> wx._core.PyNoAppError: The wx.App object must be created first!

I had a bug report of segfaults if wxConfig.Get() was called before the 
app object was created.  This is because it is trying to use the app 
object to know how to make a default config object.  So I added the 
must-have-app directive to it.  Since the plain config classes also use 
the app object for getting the app name and vendor name I thought it 
would make sense to also add the directive there, but I see now that it 
is already checking that the app exists so I guess I didn' need to do 
that...

http://trac.wxwidgets.org/ticket/9731

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!



More information about the wxpython-dev mailing list