Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal like app in PySide

Tags:

python

qt

pyside

I am making an application in PySide and I want to add a Console/Terminal like screen, where you have a prompt and you can type commands. How would I be able to accomplish this. I am guessing some combination of QPlainTextEdit/QTextEdit for the output and QLineEdit for the actual prompt. Is there a better way to do this?

like image 888
user1976336 Avatar asked Sep 05 '25 17:09

user1976336


1 Answers

You could check out Spyder. They use PyQt (which is similar) and have a terminal. I think you can import their terminal widget, but I haven't played with it.

https://code.google.com/p/spyderlib/

Also, it is my favorite python editor by far!

I've spent a fair deal of time trying to find something like this, but to no avail. Good luck!

like image 159
Garrett Berg Avatar answered Sep 08 '25 20:09

Garrett Berg