(self, *args, **kwargs)
| 22 | customSignal = pyqtSignal(str) |
| 23 | |
| 24 | def __init__(self, *args, **kwargs): |
| 25 | super(WebView, self).__init__(*args, **kwargs) |
| 26 | self.initSettings() |
| 27 | # 暴露接口对象 |
| 28 | self.page().mainFrame().javaScriptWindowObjectCleared.connect(self._exposeInterface) |
| 29 | |
| 30 | def _exposeInterface(self): |
| 31 | """向Js暴露调用本地方法接口 |
nothing calls this directly
no test coverage detected