--- a/src/eric7/WebBrowser/WebBrowserPage.py Thu Oct 12 17:03:41 2023 +0200 +++ b/src/eric7/WebBrowser/WebBrowserPage.py Thu Oct 12 17:05:08 2023 +0200 @@ -463,32 +463,6 @@ else: request.reject() - def execPrintPage(self, printer, timeout=1000): - """ - Public method to execute a synchronous print. - - @param printer reference to the printer object - @type QPrinter - @param timeout timeout value in milliseconds - @type int - @return flag indicating a successful print job - @rtype bool - """ - # FIXME: replace this logic with QWebEngineView.print(printer) - loop = QEventLoop() - resultDict = {"res": None} - QTimer.singleShot(timeout, loop.quit) - - def printCallback(res, resDict=resultDict): - if loop and loop.isRunning(): - resDict["res"] = res - loop.quit() - - self.print(printer, printCallback) - - loop.exec() - return resultDict["res"] - def __contentsSizeChanged(self, size): # noqa: U100 """ Private slot to work around QWebEnginePage not scrolling to anchors