MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / clear

Function clear

pywebio/output.py:319–326  ·  view source on GitHub ↗

Clear the content of the specified scope :param str scope: Target scope name. Default is the current scope.

(scope: str = None)

Source from the content-addressed store, hash-verified

317
318
319def clear(scope: str = None):
320 """Clear the content of the specified scope
321
322 :param str scope: Target scope name. Default is the current scope.
323 """
324 if scope is None:
325 scope = get_scope()
326 send_msg('output_ctl', dict(clear=scope2dom(scope)))
327
328
329def remove(scope: str = None):

Callers 5

targetFunction · 0.50
basic_outputFunction · 0.50
mainFunction · 0.50
on_key_pressFunction · 0.50
mainFunction · 0.50

Calls 3

get_scopeFunction · 0.85
send_msgFunction · 0.85
scope2domFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…