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 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32