pywebio / PyWebIO

Write interactive web app in script way.
https://pywebio.readthedocs.io
MIT License
4.49k stars 384 forks source link

[Feature Request] remove scope #603

Closed StarsExpress closed 4 months ago

StarsExpress commented 1 year ago

I called the remove function to remove specific scopes, but after removal, they still show up at web page. Only contents inside are cleared.

Is there a way to delete specific scopes?

TM0088 commented 1 year ago

Use clear('scope') first

wang0618 commented 9 months ago

@StarsExpress Are you sure? pywebio.output.remove(scope_name) will remove the scope as well as it's content.