Protecting against callbacks queuing up?

Esben von Buchwald find.mig at paa.google
Fri Aug 28 07:15:50 EDT 2009


It seems to solve the problem.

What I did:

     def contextDataHandler(self):
         self.contextdata.process_busy=True
         self.services.findServices()
         self.drawDisplay()
         self.contextdata.process_busy=False

     def doCallback(self):
         self.at.cancel()
         if self.process_busy==False:
             self.at.after(0.01,self.data_callback)


The app works awesomely stable now

data_callback refers to contextDataHandler in parent class

Thanks guys, good job



More information about the Python-list mailing list