MCPcopy
hub / github.com/PyQt5/PyQt / onScreenShot2

Method onScreenShot2

QWebEngineView/ScreenShotPage.py:163–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 QTimer.singleShot(2000, doScreenShot)
162
163 def onScreenShot2(self):
164 # 截图方式2
165 code = self.codeEdit.text().strip()
166 if not code:
167 return
168 self.progressdialog = QProgressDialog(self, windowTitle='正在截图中')
169 self.progressdialog.setRange(0, 0)
170 self.webView.page().runJavaScript(CODE % code)
171 self.progressdialog.exec_()
172
173 @pyqtSlot(str)
174 def saveImage(self, image):

Callers

nothing calls this directly

Calls 2

textMethod · 0.45
setRangeMethod · 0.45

Tested by

no test coverage detected