[PyQt] PyQt5 textBrowser.setText returning wrong output in textBrowser - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [PyQt] PyQt5 textBrowser.setText returning wrong output in textBrowser (/thread-9881.html) |
PyQt5 textBrowser.setText returning wrong output in textBrowser - code_god - May-02-2018 PyQt5 textBrowser.setText returning wrong output in textBrowser but correct output in console. Why? Here's the screenshot: http://fs5.directupload.net/images/180502/yubuxvyg.png RE: PyQt5 textBrowser.setText returning wrong output in textBrowser - nilamo - May-02-2018 Why is anything going to the console? You never call print() .>>> import subprocess >>> help(subprocess.call) Help on function call in module subprocess: call(*popenargs, timeout=None, **kwargs) Run command with arguments. Wait for command to complete or timeout, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: retcode = call(["ls", "-l"]) subprocess.call() doesn't return the output of the command, it returns whatever the return code was (which is normally 0 if there's no error).
|