def notify_update(url): print 'update found at', url time.sleep(1) with ui.execute_later_lock: ui.execute_later.append(lambda: menus.notify_update(url))
def notify_update(url): print 'update found at', url time.sleep(1) ui.execute_later(lambda: menus.notify_update(url))