wxPython w/ IDLE under WinXP Pro

Hans Nowak wurmy at earthlink.net
Sat Dec 22 03:38:48 CET 2001


Adonis Vargas wrote:
> 
> i am unable to use wxPython under WinXP Pro??? although the demo works just
> fine???
> 
> (using within IDLE>F5)
> everytime i attempt to load the lib i get this error:
> Traceback (innermost last)
>   File "c:\dev\python\test.py", line 2, in ?
>     from wxPython.wx import *
> SystemError: C:\Code\c1\Objects\listobject.c:88: bad argument to internal
> function
> 
> (using IDLE interactive shell)
> on the other hand if i load it in the interactive shell i get:
> Python 2.2c1 (#27, Dec 14 2001, 13:15:16) [MSC 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license" for more information.
> IDLE Fork 0.8 -- press F1 for help
> >>> from wxPython.wx import *
> >>>
> 
> and it works fine when using directly with python.exe or pythonw.exe.
> 
> just wondering if there is a fix out since i use IDLE as my editor.

I'm not sure if you are supposed to use one GUI (wxPython)
from within another (Tkinter). IDLE is written in Tkinter.

> or anyone could sugguest a better/superior editor?

There's lots of editors out there. vi, emacs, ActiveState Komodo,
PythonWorks, Archaeopteryx, etc. etc. Depends on what you want.
Also see the recent vi-vs-emacs thread, and there was a similar
thread not long ago, that you might be able to find in Google
Groups.

--Hans



More information about the Python-list mailing list