Im trying to make an image button in "pywebio" module. I tried using "onclick" and I get this error message:
"AttributeError: 'Output' object has no attribute 'onclick'"
this is what I wrote:
img = open('homelogo.png', 'rb').read()
put_image(img, width='50px').onclick(print('d'))
does anyone succeed deploy image as a button?
Aucun commentaire:
Enregistrer un commentaire