From: jim_hill_au <jim...@ya...> - 2008-08-14 09:19:13
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#cccccc" text="#000000"> <p>Hi<br> </p> <p>When I try to run PythonCard codeEditor this happens:</p> <p>Traceback (most recent call last):<br> File "codeEditor.py", line 24, in <module><br> from modules import colorizer<br> File "E:\Python\Lib\site-packages\PythonCard\tools\codeEditor\modules\colorizer.py", line 19, in <module><br> cfg = STCStyleEditor.initFromConfig(configuration.getStyleConfigPath(), 'python')<br> File "E:\Python\lib\site-packages\PythonCard\<font color="#cc0000">STCStyleEditor</font>.py", line 1224, in <font color="#cc0000">initFromConfig</font><br> cfg = <font color="#cc0000">wx.FileConfig</font>(localFilename=configFile, style=wx.CONFIG_USE_LOCAL_FILE)<br> File "E:\Python\lib\site-packages\wx-2.8-msw-unicode\wx\<font color="#cc0000">_misc.py</font>", line <font color="#cc0000">3313</font>, in __init__<br> _misc_.<font color="#cc0000">FileConfig_swiginit</font>(self,_misc_.new_FileConfig(*args, **kwargs))<br> wx._core.PyNoAppError: The wx.App object must be created first!<br> </p> <p>Something similar happens in Boa:</p> <p></p> <blockquote type="cite">Werner F. Bruhin wrote:<br> > Posted a work around here:<br> > <a class="moz-txt-link-freetext" href="https://sourceforge.net/forum/message.php?msg_id=5133566">https://sourceforge.net/forum/message.php?msg_id=5133566</a></blockquote> <p>But the PythonCard code looks so different <br> that i don't think Werner's workaround would help.<br> cfg is referenced a few times, so you can't just comment it out.<br> </p> <p>Did something change in wxPython between 2880 and 2881, <br> or would this be caused by any upgrade of wxPython version? <br> </p> <p>--<br> jim<br> </p> <p> </p> </body> </html> |