Python Console with Panda Running?


Is there any way to bring up an interactive console that users can type python commands into?

I tried using IDLE, but once the run loop happens, the console is unusable.

Wondering if this is possible. I’m using PyQt as a GUI.


Yeah, in my game I coded a DirectGUI console using pythons “InteractiveInterpreter” class.

I believe Hypnos published one on the forums:

The link to the InteractiveDisplay code appears to be broken…

If you run python with the -i flag, you will be in ‘interactive mode’. Then you can hit ‘control-c’ to halt execution and go back to the python command line. To start panda running again, just type run() again.