My fault(already got that one running), i meant the win32gui.EnumChildWindows(currentHwnd, windowEnumerationHandler, childWindows) function.
from what i understand the purpose of this function is to return the childwindows from a top window - if this is right why not just pass a topwindow as argument and return a list of childwindows? On Tue, 2008-03-11 at 17:04 -0500, Rickey, Kyle W wrote: > I like using lambda for this, but you could also put it into a function. > > windows = [] > win32gui.EnumWindows(lambda hwnd, resultList: resultList.append(hwnd), > windows) > > This will populate windows with all the hwnds. > > -Kyle Rickey > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Julius > Sent: Tuesday, March 11, 2008 5:00 PM > To: python-win32@python.org > Subject: [python-win32] win32gui.EnumWindows, documentation? > > Hi, > > im new to python in generell and was wondering where i would find the > api to win32gui.EnumWindows? > I know one of its arguments is a callback function, but i cant find any > information how it should look like? > > Is this another win32 python implementation or is the site just called > activestate? Ive installed Mark Hammond's win32 extensions > http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32gui_ > _EnumWindows_meth.html > > > > > Julius _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32