def _sync_callback(result): if result == 'error': tray_icon.draw_icon('error') reactor.callLater(5, tray_icon.restore_icon) return elif result == 'source-code-fetched': tray_icon.draw_icon('updated') reactor.callLater(5, tray_icon.restore_icon) return tray_icon.restore_icon()
def _sync_callback(result): if result == "error": tray_icon.draw_icon("error") reactor.callLater(5, tray_icon.restore_icon) return elif result == "new-data": tray_icon.draw_icon("updated") reactor.callLater(5, tray_icon.restore_icon) return tray_icon.restore_icon()
def _sync_callback(result): if result == 'error': tray_icon.draw_icon('error') reactor.callLater(5, tray_icon.restore_icon) return elif result == 'new-data': tray_icon.draw_icon('updated') reactor.callLater(5, tray_icon.restore_icon) return tray_icon.restore_icon()