Rerouting stdout to Multiline in PySimpleGUI show inconsistent behavior

  pysimplegui, python, user-interface

I have used element Multiline several times to display the output of it.

   [sg.Multiline(size=(55, 5), key="-multi-", reroute_stdout=True)],
]

window = sg.Window('Window Title', layout, finalize=True)
event, values = window.read(timeout=0)

I am starting a new project and this happens:

enter image description here

When I remove reroute_stdout=True the error disappears. It works fine in another script and no difference that would be salient, very confusing.

Source: Python Questions

One Reply to “Rerouting stdout to Multiline in PySimpleGUI show inconsistent behavior”

LEAVE A COMMENT