[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] graphics freeze when mouse click occurs on windows



This is your problem. The pygame display is not thread safe at all. It
can only be accessed from the program's primary thread. The different
display backends will expose different kinds of wierd problems with this
happens.


You are able to post new events from secondary threads, but only the
primary thread should call the event functions to get, clear, or pump
the queue.



Thank you for your help. I have just figured out on aspn that I am posting my messages in your discussion thread, sorry - I have to fix the thread problem, I think.


Alex