How do I call a python script when clicking a button (using pyscript)

How do I call a python script when clicking a button (using pyscript)

More to explore

Based on this image's title: “How do I call a python script when clicking a button (using pyscript)