On 28/01/2013 15:34, Radu Savutiu wrote:
> I have multiple scripts in which i used win32gui.EnumWindows.
> So far they all worked - but now it seems they pause on this call to
> EnumWindows.
> 
> I suspect this has nothing to do with pythoncom, as I use CoInitialize
> there and it works.

It's not entirely clear from your description what you're doing
and what's going wrong. By way of experiment this works for me:
(Win7, Python 2.7)

<code>
import Queue
import threading
import win32gui

q = Queue.Queue()
t = threading.Thread(
    target=win32gui.EnumWindows,
    args=(q.put, None)
)
t.start()

while True:
    print q.get_nowait()

</code>

TJG
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to