Re:Introducing PyScript (summary of PyCon keynote)
by rahimnathwani on Wednesday June 22, 2022 @10:43PM
(#31844607)
The trade off is flexibility, right? I mean, with something like gradio, can you add e.g. an event listener to a specific DOM element?
[ Parent
| on HN ]
Re:Introducing PyScript (summary of PyCon keynote)
by abidlabs on Thursday June 23, 2022 @01:48AM
(#31845579)
You can, if that that specific DOM element is a Gradio component (e.g. a button, image, textbox, etc). Here's a very simple example: https://github.com/gradio-app/gradio/blob/main/demo/blocks_h...