示例#1
0
 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()
示例#2
0
 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()
示例#3
0
 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()