Hello,
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.
thanks
dave
Hello,
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.
thanks
dave
Yeah, in my game I coded a DirectGUI console using pythons “InteractiveInterpreter” class.
I believe Hypnos published one on the forums:
discourse.panda3d.org/viewtopic.php?t=2135
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.