Problems running from wxWindows in IDLE and Pythonwin

Steve Holden sholden at
Tue Aug 6 15:36:46 CEST 2002

"edp" <ed2417 at> wrote in message
news:aiof3i$29l$1 at
> Just messing around trying to get a comfort level - standard python 2.2.1
> install on Win2000 .
> Works from command line.
> Trying to run demo in IDLE gives the following message:
> Traceback (most recent call last):
>   File "C:\Python22\Lib\site-packages\wxPython\demo\", line 3, in ?
>     import Main
> ImportError: No module named Main
> Attempting to run it in Pythonwin crashes the environment and shuts down
> Pythonwin:
> Pythonwin has generated errors and will be closed by Windows...
Situation normal.

This will help you to remember that different GUI systems often don't play
well together. IDLE is based on the Tkinter GUI, PythonWin is based on the
Microsoft Foundation Classes. Neither will correctly handle a wxPython

IDLE won't even handle Tkinter programs very well, as it runs modules as a
part of its own process, leading to attempts to have two GUI loops running
at the same time.

Steve Holden                       
Python Web Programming      

More information about the Python-list mailing list