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): |