Python Forum

Full Version: PyQt5 textBrowser.setText returning wrong output in textBrowser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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).