From: David S. <dsc...@cm...> - 2000-11-23 18:33:57
|
> if I try to run the program in the visualpython-IDLE I get the following > in the output window: > > Visual-2000-06-10 > Traceback (innermost last) > File "c:\python\programs\wxpy_test\test.py", line 2, in ? > from wxPython.wx import * > SystemError: bad argument to internal function I don't have an explanation, but I've never tried to use wxPython from IDLE. If you want to try tracking down the problem, I would start by: 1) Removing the visual code from the example, so that only IDLE and wxPython are involved 2) Look at loader.py and Remote.py, which make up the part of IDLE that runs in the same process as your program. Whatever conflicts with wxPython must be somewhere in there. 3) Try importing wxPython from inside a user thread (but not using IDLE) to see if the problem might be related to the loader's use of threading (your program is not executed in the main thread when it executes under IDLE). Dave |