MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / _runJs

Method _runJs

Widgets/MainWindow.py:176–180  ·  view source on GitHub ↗

执行js :param code:

(self, code)

Source from the content-addressed store, hash-verified

174 AppLog.warn('run ui file failed: {}'.format(str(e)))
175
176 def _runJs(self, code):
177 """执行js
178 :param code:
179 """
180 self.webViewContent.page().mainFrame().evaluateJavaScript(code)
181
182 def onReadChannelFinished(self):
183 process = self.sender()

Callers 3

renderCodeMethod · 0.95
renderReadmeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected