コード例 #1
0
 def applicationShouldTerminate_(self, sender):
     logging.info("[osx] application terminating")
     self.setMenuTitle_("\n\n%s\n" % (T("Stopping...")))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     return NSTerminateNow
コード例 #2
0
ファイル: osxmenu.py プロジェクト: sabnzbd/sabnzbd
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle_("\n\n%s\n" % (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     try:
         notifier.send_notification('SABnzbd', T('SABnzbd shutdown finished'), notifier.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #3
0
ファイル: osxmenu.py プロジェクト: usermonk/sabnzbd
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle_("\n\n%s\n" % (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     sabnzbd.shutdown_program()
     try:
         notifier.send_notification('SABnzbd', T('SABnzbd shutdown finished'), notifier.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #4
0
ファイル: sabtraylinux.py プロジェクト: kitten77/sabnzbd
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.shutdown_program()
コード例 #5
0
ファイル: sabtraylinux.py プロジェクト: sabnzbd/sabnzbd
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.shutdown_program()
コード例 #6
0
ファイル: sabtray.py プロジェクト: usermonk/sabnzbd
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     sabnzbd.shutdown_program()
コード例 #7
0
ファイル: sabtray.py プロジェクト: jamesstout/sabnzbd
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     sabnzbd.shutdown_program()