Unsolved Is it possible to spawn a pty shell inside a QWidget?
-
So I found this stackoverflow thread:
https://stackoverflow.com/questions/52047286/spawning-a-shell-inside-a-pyqt5-widget-using-pty-spawnThat's exactly what I want to do... but there are no answers under that.
-
@Fuchsiaff
maybe embedding Python is an option for you? -
The pty isn't a visible thing, so it's not something you can spawn inside a widget. Basically, you are asking about writing a terminal emulator, where you'll need to convert the keypress events of your widget to the stdin stream you send to the pty, and handle the display and output of the stream coming out of the stdout of the pty.
-
I forgot to mention that I'm writing my application is already written in python.