def on_pause(self): from utilities.notification import startNotificationService startNotificationService() FocusManager.defocus_all() # maybe store/sync a few things before... self.root.handle_app_pause() return True
def on_stop(self): # signal all async worker to shutdown from utilities.notification import startNotificationService startNotificationService() from utilities.threads import async_gloabl_threads_destrcution async_gloabl_threads_destrcution() FocusManager.defocus_all() self.root.handle_app_stop() return True