MCPcopy Index your code
hub / github.com/pyscript/pyscript / handle_click

Function handle_click

core/tests/python/tests/test_events.py:739–742  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

737
738 @when("click", "#button-for-event-testing", once=True)
739 def handle_click(event):
740 nonlocal click_count
741 click_count += 1
742 call_flag.set()
743
744 btn = web.page["#button-for-event-testing"]
745 btn.click()

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected