470,647 Members | 1,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Problem with DispatchWithEvents

Traceback (most recent call last):
File "windowedfax.py", line 223, in OnClick
self.iexplore = DispatchWithEvents("InternetExplorer.Application",
File "C:\Python24\Lib\site-packages\win32com\client\__init__.py",
line 268, in DispatchWithEvents
File "windowedfax.py", line 178, in __init__
this.iexploreInstance = self
NameError: global name 'this' is not defined

Output completed (18 sec consumed) - Normal Termination

I am running Python 2.4 with the most recent 2.4 win32all package
installed. This is straight from the installer. I did a clean
installation of everything.

This was working before I tried an ActivePython distribution. It
stopped working because ActivePython did not seem to support my SSL
usage in urllib, so I returned to a stock python distribution.

The line where I call DispatchWithEvents is like this:
iexplore = DispatchWithEvents("InternetExplorer.Application",

where eventHandling is a functioning class to that purpose.

Thanks for any help, in advance.

Jul 19 '05 #1
0 1349

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas Heller | last post: by
117 posts views Thread by Peter Olcott | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
reply views Thread by puff | last post: by
reply views Thread by smilyface | last post: by
2 posts views Thread by RyanN | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.