def onDeleteWidget(self):
     self.cancel_active_threads()
     OWWidget.onDeleteWidget(self)
 def onDeleteWidget(self):
     self.Cancel()
     self.executor.shutdown(wait=False)
     OWWidget.onDeleteWidget(self)