win32com: makepy causes ie problems.

Peter Hansen peter at engcorp.com
Fri Jul 19 09:50:56 EDT 2002


Mark Hammond wrote:
> 
> David LeBlanc wrote:
> > While trying to figure out how to make the recently posted (by Paul Rubin)
> > ie navigation example work, I had occasion to run makepy.py on "Microsoft
> > Internet Controls". After doing this, the sample would fail on "ie.visible =
> > 1". Removing the generated file would return the sample to working order.
> >
> > Sample:
> > from win32com.client import DispatchEx
> > import time
> >
> > ie = DispatchEx('internetexplorer.application')
> > ie.visible = 1
> > ie.navigate('http://www.w3.org')
> 
> Was the problem "AttributeError: visible"?  If so, the problem is simply
> that the correct name for the property is "Visible".  makepy is case
> sensitive.

Ahh, that would be the problem.  I never use makepy (to date), so
I guess I've become lazy and don't pay attention to the case, not
wanting to spend my time reading Microsoft documentation to discover
which is which. :)

-Peter



More information about the Python-list mailing list