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

Method callFromJs

QWebEngineView/JsSignals.py:52–53  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

50 # 注意pyqtSlot用于把该函数暴露给js可以调用
51 @pyqtSlot(str)
52 def callFromJs(self, text):
53 QMessageBox.information(self, "提示", "来自js调用:{}".format(text))
54
55 def sendCustomSignal(self):
56 # 发送自定义信号

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected