How can I display terminal output to a text box in PyQt
stackoverflow.com › questions › 57563047Aug 19, 2019 · How can I display terminal output to a text box in PyQt. I'm coding a GUI which has a function that prints output to terminal. I would like to have it shown in some kind of text box or something similar. def radial_distance (body1, body2, utc, ref, abcorr, obs): x_1 = 1 x_2 = 4 y_1 = 5 y_2 = 2 z_1 = 7 z_2 = 6 d_rad = np.sqrt ( (x_2 - x_1)**2.0 + (y_2 - y_1)**2.0 + (z_2 - z_1)**2.0) return d_rad.
pyqtconsole · PyPI
pypi.org › project › pyqtconsoleDec 20, 2021 · pyqtconsole is a lightweight python console for Qt applications. It’s made to be easy to embed in other Qt applications and comes with some examples that show how this can be done. The interpreter can run in a separate thread, in the UI main thread or in a gevent task. Installing Simply type: pip install pyqtconsole