Re: Pygame, mouse events and threads

2006-08-25 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Ben Sizer wrote: > > [EMAIL PROTECTED] wrote: > > > > > When I put the content of the run and input functions in the main > > > thread, it's working, why not in the thread? > > > > Because event handling needs to be done in the main thread. So does > > rendering. This is

Re: Pygame, mouse events and threads

2006-08-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Ben Sizer wrote: >> [EMAIL PROTECTED] wrote: >> >>> When I put the content of the run and input functions in the main >>> thread, it's working, why not in the thread? >> Because event handling needs to be done in the main thread. So does >> rendering. This is a limitati

Re: Pygame, mouse events and threads

2006-08-24 Thread jedi200581
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > > When I put the content of the run and input functions in the main > > thread, it's working, why not in the thread? > > Because event handling needs to be done in the main thread. So does > rendering. This is a limitation of the underlying system. >

Re: Pygame, mouse events and threads

2006-08-24 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > When I put the content of the run and input functions in the main > thread, it's working, why not in the thread? Because event handling needs to be done in the main thread. So does rendering. This is a limitation of the underlying system. As a general rule, try to keep