Python Forum
[PyQt] PyQt5 textBrowser.setText returning wrong output in textBrowser
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] PyQt5 textBrowser.setText returning wrong output in textBrowser
#1
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
Reply
#2
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).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] [Solved]Change text color of one line in TextBrowser Extra 2 4,761 Aug-23-2022, 09:11 PM
Last Post: Extra
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,785 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020