Problems running demo.py from wxWindows in IDLE and Pythonwin

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


"edp" <ed2417 at mindspring.com> wrote in message
news:aiof3i$29l$1 at slb6.atl.mindspring.net...
> 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\demo.py", 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
program.

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.

regards
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list