I am trying to start a wxPython program from the Py... tools.
What I am doing:
o start pyshell
o in pyshell:
import hello
hello.main()
This happens:
The program starts fine, but the cursor remains the "waiting" type cursor.
You can interact with the started programm even with this waiting cursor.
Terminating the programm leaves pyshell an pycrust etc. in an unusable state.
No prompt reappears and no input is accepted any more
This is true for me on FreeBSD, Windows NT and Windows XP. I have searched the groups and mailing lists, but did not find a hint.
Any help appreciated!
I am trying to start a wxPython program from the Py... tools.
What I am doing:
o start pyshell
o in pyshell:
import hello
hello.main()
This happens:
The program starts fine, but the cursor remains the "waiting" type cursor.
You can interact with the started programm even with this waiting cursor.
Terminating the programm leaves pyshell an pycrust etc. in an unusable state.
No prompt reappears and no input is accepted any more
This is true for me on FreeBSD, Windows NT and Windows XP. I have searched the groups and mailing lists, but did not find a hint.
Any help appreciated!
It sounds like hello.main is creating it's own wx.App object and calling MainLoop. PyShell already has an app object and is running its MainLoop and since they are running in the same process this causes a conflict. You should run hello in its own process (IOW, start it outside of PyShell.) If you would like to have a shell running as part of hello then take a look at the pywrap tool.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!