mirror of https://github.com/pyodide/pyodide.git
DOC Fix type-conversions.md example (#2062)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
This commit is contained in:
parent
334be2e0c7
commit
d5dc6559ca
|
@ -619,6 +619,8 @@ directly (i.e., `jsfunc(obj)`) or as `jsfunc(create_proxy(obj))`.
|
|||
`create_proxy` is particularly helpful with `addEventListener`:
|
||||
|
||||
```py
|
||||
import pyodide
|
||||
|
||||
def callback():
|
||||
print("clicked!")
|
||||
proxy = pyodide.create_proxy(callback)
|
||||
|
|
Loading…
Reference in New Issue