We had a working application that used wxPython and the PDFWindow ActiveX
control on Windows XP and Python 2.5. That computer failed, so we
reestablished the Python/WxPython environment on a new PC, but using Windows
7 64bit, Python 2.7 rather than 2.5, and the compatible packages. Now that
formerly working application fails trying to use WxPython's PDFWindow class.
The specifics:
1. After creating a PDF window, as follows:
self.pdf = PDFWindow(panel, style=wx.SUNKEN_BORDER)
I then get a KeyError for setShowScrollbars on the following line
self.pdf.setShowScrollbars(True)
2. I comment out the attempt to setShowScrollbars, there is no Exception
but the panel then displays what appears as an Internet Explorer error:
"Navigation to the web page was canceled"
3. I believe it's not my code, because if I run the downloaded wxPython
demo program (from wxPython2.8-win32-docs-demos-2.8.11.0) and run the
specific demo from 'More Windows/Controls', 'ActiveX_PDFWindow', then that
demo fails with exactly the same error error as in point 2 above in my
program.
In searching the WxPython-users forum I don't see a similar report, which
makes me suspect the problem may be something in my environment, so I've
listed the relevant environment info below.
But whether it's environment or not, we're stuck and would greatly
appreciate any help or guidance. THANK YOU!
Python 2.7.1 (64bit)
wxPython2.8-win64-unicode-2.8.11.0-py27
wxPython-common-2.8.11.0.win-amd64-py27
pywin32-214.win-amd64-py27
comtypes-0.6.2
Windows-7 64-bit
Internet Explorer v9 beta (with ActiveX controls Enabled)
Acrobat Reader 9.4.1
···
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/KeyError-in-PDFWindow-and-WxPython-demo-fails-with-PDF-ActiveX-tp3348821p3348821.html
Sent from the wxPython-users mailing list archive at Nabble.com.