PythonCard codeEditor and wxPython 2.8.8.1

jim_hill_au <[email protected]> Thu, 14 Aug 2008 19:19:14 +1000
Newsgroups gmane.comp.python.pythoncard,gmane.comp.python.wxpython
Message-ID <[email protected]>
Hi

When I try to run PythonCard codeEditor this happens:

Traceback (most recent call last):

File "codeEditor.py", line 24, in <module>

from modules import colorizer

File
"E:\Python\Lib\site-packages\PythonCard\tools\codeEditor\modules\colorizer.py",
line 19, in <module>

cfg =
STCStyleEditor.initFromConfig(configuration.getStyleConfigPath(),
'python')

File "E:\Python\lib\site-packages\PythonCard\STCStyleEditor.py",
line
1224, in initFromConfig

cfg = wx.FileConfig(localFilename=configFile,
style=wx.CONFIG_USE_LOCAL_FILE)

File "E:\Python\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!

Something similar happens in Boa:

Werner F. Bruhin wrote:

> Posted a work around here:

> https://sourceforge.net/forum/message.php?msg_id=5133566

But the PythonCard code looks so different

that i don't think Werner's
workaround would help.

cfg is referenced a few times, so you can't just comment it out.

Did something change in wxPython between 2880 and 2881,

or would this be
caused by any upgrade of wxPython version?

--

jim

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users