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

Method on_click

core/tests/python/tests/test_web.py:352–355  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

350
351 @when("click", just_a_button)
352 def on_click(event):
353 nonlocal called
354 called = True
355 call_flag.set()
356
357 # Now let's simulate a click on the button (using the low level JS API)
358 # so we don't risk dom getting in the way

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected