Re: confusing thread behavior

2009-12-03 Thread paul
On Dec 3, 2:03 pm, Mike Driscoll wrote: > On Dec 3, 3:42 pm, paul wrote: > > > > > > > I have been experiencing strange thread behavior when I pass a message > > received via a Queue to a wx.PostEvent method (from wxPython). The > > relevant code in the thread is: > > > def run(self): > >     whi

Re: confusing thread behavior

2009-12-03 Thread Mike Driscoll
On Dec 3, 3:42 pm, paul wrote: > I have been experiencing strange thread behavior when I pass a message > received via a Queue to a wx.PostEvent method (from wxPython). The > relevant code in the thread is: > > def run(self): >     while self.is_running: >         task = self.queue.get() >        

confusing thread behavior

2009-12-03 Thread paul
I have been experiencing strange thread behavior when I pass a message received via a Queue to a wx.PostEvent method (from wxPython). The relevant code in the thread is: def run(self): while self.is_running: task = self.queue.get() wx.PostEvent(self.app.handle_task, task) sel