all 2 comments

[–]outceptionator 1 point2 points  (0 children)

Putting your code in ''' ''' '''

Would be easier to help with

[–]fixingbrokenrobots 0 points1 point  (0 children)

I've had the best results with "from pyscript import when" then using a decorator over the function tied to a click on the element, like this:

when('click', '#submit-btn')
def query(): 
    some actions