Try adding  /nodde to the end of the Pythonwin command line. This has fixed
this problem in several situations.

Pythonwin uses Windows DDE so that if it is running and you double click on
a *.py file, the file is opened in the existing Pythonwin. Some packages try
to run a script in a python subshell. This results in a deadlock. The /nodde
fixes this.

Martin Katz, Ph.D.

> -----Original Message-----
> From: Bruce Peterson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: wxPython and Pythonwin
> 
> After a few "hidden" features (i.e. I didn't see them) were pointed
> out
> (thanks Andy) Pythonwin is looking much better. Someone also mentioned
> using wxPython as a GUI interface. One problem I have is that I can't
> run
> wxPython code with the Pythonwin IDE. The following simple code
> 
> from wxPython.wx import *
> 
> class MyApp(wxApp):
>      def OnInit(self):
>          frame = wxFrame(NULL, -1, "Hello from wxPython")
>          frame.Show(true)
>          self.SetTopWindow(frame)
>          return true
> 
> app = MyApp(0)
> app.MainLoop()
> 
> causes Pythonwin to go away. The code runs fine from a DOS prompt
> (python
> test.py) and when double clicked from windows. I would guess that
> there is
> a conflict in the windowing between wxPython and Pythonwin -- any
> ideas on
> how to avoid this?
> 
> 
> 
> Bruce Peterson
> Terastat, Inc
> Information Access Systems
> Voice (425) 466 7344
> Fax (206) 350 3685
> 
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options:
> http://listserv.ActiveState.com/mailman/listinfo/ActivePython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to