Fixed the new web browser print function for Windows.

Sat, 01 Oct 2016 11:42:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 01 Oct 2016 11:42:23 +0200
changeset 5192
a10fb04f3edd
parent 5191
b7471cf89b07
child 5193
04ba3ea482fe

Fixed the new web browser print function for Windows.

WebBrowser/WebBrowserTabWidget.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/WebBrowserTabWidget.py	Fri Sep 30 19:52:42 2016 +0200
+++ b/WebBrowser/WebBrowserTabWidget.py	Sat Oct 01 11:42:23 2016 +0200
@@ -757,7 +757,7 @@
                     printerName = self.__pdfPrinter.printerName()
                     import ctypes
                     ctypes.windll.shell32.ShellExecuteW(
-                        self.winId(), "printto", tempFile.fileName(),
+                        None, "printto", tempFile.fileName(),
                         '"{0}"'.format(printerName), None, 0)
                 else:
                     FilePrinter.printFile(

eric ide

mercurial