MCPcopy Index your code
hub / github.com/PyQt5/PyQt / onScreenShot2

Method onScreenShot2

QWebView/ScreenShotPage.py:137–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 item.setData(Qt.UserRole + 1, image)
136
137 def onScreenShot2(self):
138 # 截图方式2
139 code = self.codeEdit.text().strip()
140 if not code:
141 return
142 self.progressdialog = QProgressDialog(self, windowTitle='正在截图中')
143 self.progressdialog.setRange(0, 0)
144 self.webView.page().mainFrame().evaluateJavaScript(CODE % code)
145 self.progressdialog.exec_()
146
147 @pyqtSlot(str)
148 def saveImage(self, image):

Callers

nothing calls this directly

Calls 2

textMethod · 0.45
setRangeMethod · 0.45

Tested by

no test coverage detected