Question
Linux
Python 3.6
PySimpleGUI Python 3.29
Is there away to clear the OUTPUT element of all output?
Perhaps you can try this.
Given an output element
[sg.Output(size=(80, 20), key = '_output_')],
You can clear it with.
window.FindElement('_output_').Update('')
LOVE it when the community comes together to answers questions for each other.
@fsmosca thank you that worked. Easy when you know how.
I think the next time you print after clearing the output it prints all the previous output at least in Web interface
@kpsychas
If you have an issue to report, please open a new issue.
It appears your issue is on PySimpleGUIWeb and you've replied to an issue that was closed over a year ago that was on the tkinter port.
Most helpful comment
Perhaps you can try this.
Given an output element
[sg.Output(size=(80, 20), key = '_output_')],You can clear it with.
window.FindElement('_output_').Update('')