[python-win32] EnumChildWindows

Tim Roberts timr at probo.com
Tue Aug 21 02:19:34 CEST 2007


Radu Ciora wrote:
> thanks for the reply Tim but that's how I got the sample from internet.
> Anyway I changed the code like this:
> ...
> win32gui.EnumChildWindows(l_hwnd,
> self.windowEnumerationHandler(l_hwnd,l_childlist), l_childlist)

That's not what I wrote at all.  You need to pass the function, not call
the function and pass whatever it returns.  Do it exactly like this:

   win32gui.EnumChildWindows( l_hwnd, self.windowEnumerationHandler,
l_childlist )

Note that there are *no parentheses* after windowEnumerationHandler.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list