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:
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