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

Method callFromJs

QWebView/JsSignals.py:37–38  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

35 # 注意pyqtSlot用于把该函数暴露给js可以调用
36 @pyqtSlot(str)
37 def callFromJs(self, text):
38 QMessageBox.information(self, "提示", "来自js调用:{}".format(text))
39
40 def sendCustomSignal(self):
41 # 发送自定义信号

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected