def add_to_js(self, name, var):
        frame = self.page().mainFrame()
        frame.addToJavaScriptWindowObject(name, var)
Add an object to Javascript.
dataset/ETHPy150Open kwikteam/phy/phy/gui/widgets.py/HTMLWidget.add_to_js