-
Can I have multiple instances of a class in the js api? class HeavyStuffAPI: ...
class Api:
heavy_stuff1 = HeavyStuffAPI()
heavy_stuff2 = HeavyStuffAPI()
webview.create_window('JS API example', html=html, js_api=Api()) |
Beta Was this translation helpful? Give feedback.
Answered by
r0x0r
Jan 29, 2025
Replies: 1 comment 3 replies
-
It should work in theory, but a duplicate object check most likely prevents the second object from appearing |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
eevleevs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should work in theory, but a duplicate object check most likely prevents the second object from appearing