def applicationDidFinishLaunching_(self, notification):
    self.statusbar = NSStatusBar.systemStatusBar()
    self.statusitem = self.statusbar.statusItemWithLength_(NSVariableStatusItemLength)
    self.image = NSImage.alloc().initByReferencingFile_('Logo.png')
    self.statusitem.setImage_(self.image)
    self.statusitem.setHighlightMode_(1)
    self.statusitem.setToolTip_('pyRotateDisplay')
    self.menu = NSMenu.alloc().init()
    menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_('Settings', 'settings:', '')
    self.menu.addItem_(menuitem)
    menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_('Quit', 'terminate:', '')
    self.menu.addItem_(menuitem)
    self.statusitem.setMenu_(self.menu)
def applicationDidFinishLaunching_(self, notification):
    self.statusbar = NSStatusBar.systemStatusBar()
    self.statusitem = self.statusbar.statusItemWithLength_(NSVariableStatusItemLength)
    self.image = NSImage.alloc().initByReferencingFile_('Logo.png')
    self.statusitem.setImage_(self.image)
    self.statusitem.setHighlightMode_(1)
    self.statusitem.setToolTip_('pyRotateDisplay')
    self.menu = NSMenu.alloc().init()
    menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_('Settings', 'settings:', )
    self.menu.addItem_(menuitem)
    menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_('Quit', 'terminate:', )
    self.menu.addItem_(menuitem)
    self.statusitem.setMenu_(self.menu)