MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QWebView/JsSignals.py:24–28  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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暴露调用本地方法接口

Callers

nothing calls this directly

Calls 2

initSettingsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected