Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to Clear the OUTPUT Element #1441

Closed
OPMUSER opened this issue May 19, 2019 · 5 comments
Closed

Question: How to Clear the OUTPUT Element #1441

OPMUSER opened this issue May 19, 2019 · 5 comments

Comments

@OPMUSER
Copy link

OPMUSER commented May 19, 2019

Type of Issues (Enhancement, Error, Bug, Question)

Question

Operating System

Linux

Python version

Python 3.6

PySimpleGUI Port and Version

PySimpleGUI Python 3.29

Code or partial code causing the problem

Is there away to clear the OUTPUT element of all output?

@fsmosca
Copy link

fsmosca commented May 19, 2019

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('')

@MikeTheWatchGuy
Copy link
Collaborator

LOVE it when the community comes together to answers questions for each other.

@OPMUSER
Copy link
Author

OPMUSER commented May 19, 2019

@fsmosca thank you that worked. Easy when you know how.

@kpsychas
Copy link

kpsychas commented May 28, 2020

I think the next time you print after clearing the output it prints all the previous output at least in Web interface

@PySimpleGUI
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants