src/eric7/WebBrowser/WebBrowserPage.py

branch
eric7
changeset 10237
17ab17a3e6b3
parent 10069
435cc5875135
child 10240
cbd566d49a88
equal deleted inserted replaced
10236:c270c9501f1c 10237:17ab17a3e6b3
472 @param timeout timeout value in milliseconds 472 @param timeout timeout value in milliseconds
473 @type int 473 @type int
474 @return flag indicating a successful print job 474 @return flag indicating a successful print job
475 @rtype bool 475 @rtype bool
476 """ 476 """
477 # FIXME: replace this logic with QWebEngineView.print(printer)
477 loop = QEventLoop() 478 loop = QEventLoop()
478 resultDict = {"res": None} 479 resultDict = {"res": None}
479 QTimer.singleShot(timeout, loop.quit) 480 QTimer.singleShot(timeout, loop.quit)
480 481
481 def printCallback(res, resDict=resultDict): 482 def printCallback(res, resDict=resultDict):

eric ide

mercurial