wxPython 2.9.1.1 webkit import error

Hi,

I tried to import webkit in Mac and get following error message

Traceback (most recent call last):
File “”, line 1, in
File “wx/webkit.py”, line 61, in
class WebKitCtrl(_core.Control):
File “wx/webkit.py”, line 171, in WebKitCtrl
ScrollPos = property(GetScrollPos,SetScrollPos,doc="See GetScrollPos and SetScrollPos")
NameError: name ‘GetScrollPos’ is not defined

How to fix this error?

Thanks,
David

You can just remove that line from webkit.py, it is now inheriting the property from a base class.

···

On 2/11/11 12:10 AM, David wrote:

Hi,

I tried to import webkit in Mac and get following error message

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wx/webkit.py", line 61, in <module>
class WebKitCtrl(_core.Control):
File "wx/webkit.py", line 171, in WebKitCtrl
ScrollPos = property(GetScrollPos,SetScrollPos,doc="See `GetScrollPos
and SetScrollPos`")
NameError: name 'GetScrollPos' is not defined

How to fix this error?

--
Robin Dunn
Software Craftsman

Thanks, it work.