WebBrowser/WebBrowserTabWidget.py

changeset 5192
a10fb04f3edd
parent 5182
e2782c9a43d4
child 5389
9b1c800daff3
equal deleted inserted replaced
5191:b7471cf89b07 5192:a10fb04f3edd
755 if bytesWritten == pdfData.size(): 755 if bytesWritten == pdfData.size():
756 if Globals.isWindowsPlatform(): 756 if Globals.isWindowsPlatform():
757 printerName = self.__pdfPrinter.printerName() 757 printerName = self.__pdfPrinter.printerName()
758 import ctypes 758 import ctypes
759 ctypes.windll.shell32.ShellExecuteW( 759 ctypes.windll.shell32.ShellExecuteW(
760 self.winId(), "printto", tempFile.fileName(), 760 None, "printto", tempFile.fileName(),
761 '"{0}"'.format(printerName), None, 0) 761 '"{0}"'.format(printerName), None, 0)
762 else: 762 else:
763 FilePrinter.printFile( 763 FilePrinter.printFile(
764 self.__pdfPrinter, tempFile.fileName(), 764 self.__pdfPrinter, tempFile.fileName(),
765 FilePrinter.FilePrinter.SystemDeletesFiles, 765 FilePrinter.FilePrinter.SystemDeletesFiles,

eric ide

mercurial