Radu Ciora wrote: > Hi everyone, > can anyone give me an example of use of win32gui.EnumChildWindows() > function > as I can't seem to make it work: > > my code looks like this: > ... > win32gui.EnumChildWindows(l_hwnd, self.windowEnumerationHandler(), > l_childlist)
That can't be your code. That calls windowEnumerationHandler, rather than passing the address of it. > ... > def windowEnumerationHandler(hwnd, resultList): Remember that a member function always gets a "self" parameter first. All you need to do is change those two lines to: win32gui.EnumChildWindows( l_hwnd, self.windowEnumerationHandler, l_childlist ) ... def windowEnumerationHandler( self, hwnd, resultList ): -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32