-3

I need to launch a python terminal from the code of one wxpython application when pressing a button. Is it possible?

Bobbick
  • 255
  • 3
  • 10

1 Answers1

1

In wxPython land, you could load a window that has PyShell in it, which is a Python shell written in wxPython. The wxPython demo has an example. There's also PyCrust (also in the demo) which adds a few more features to PyShell.

Otherwise you could do it by using the subprocess module to open a console with Python in it.

Mike Driscoll
  • 32,629
  • 8
  • 45
  • 88