src/ipwatch.py
def infoMenu(self) :
        """
        Sub-menu "Details" which displays information such as hostname, ASN, etc.
        """
      
        self.detailMenuItem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_("Details...", None, '')
        detailSubMenu = NSMenu.alloc().init()
        
        # data is dictionary of the JSON response from ipinfo.io/json
        for k, v in self.ipWatchApp.data.items() :
            
            # TODO: order the listing 
            item = "%s: %s" % (k, v)
            detailSubMenu.addItemWithTitle_action_keyEquivalent_(item, None, '')

        self.detailMenuItem.setSubmenu_(detailSubMenu)

        # position 0 specified as info sub-menu deleted and re-added later when updated
        self.menu.insertItem_atIndex_(self.detailMenuItem, 0)

        Sub-menu "Details" which displays information such as hostname, ASN, etc.
        
Sub-menu "Details" which displays information such as hostname, ASN, etc.
Sub - menu " Details " which displays information such as hostname ASN etc .
def infoMenu(self) :
        self.detailMenuItem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_("Details...", None, '')
        detailSubMenu = NSMenu.alloc().init()
        for k, v in self.ipWatchApp.data.items() :
            item = "%s: %s" % (k, v)
            detailSubMenu.addItemWithTitle_action_keyEquivalent_(item, None, '')
        self.detailMenuItem.setSubmenu_(detailSubMenu)
        self.menu.insertItem_atIndex_(self.detailMenuItem, 0)
def infoMenu ( self ) : self . detailMenuItem = NSMenuItem . alloc ( ) . initWithTitle_action_keyEquivalent_ ( "Details..." , None , '' ) detailSubMenu = NSMenu . alloc ( ) . init ( ) for k , v in self . ipWatchApp . data . items ( ) : item = "%s: %s" % ( k , v ) detailSubMenu . addItemWithTitle_action_keyEquivalent_ ( item , None , '' ) self . detailMenuItem . setSubmenu_ ( detailSubMenu ) self . menu . insertItem_atIndex_ ( self . detailMenuItem , 0 )
Sub-menu "Details" which displays information such as hostname, ASN, etc.
Sub - menu " Details " which displays information such as hostname ASN etc .
"""
        Sub-menu "Details" which displays information such as hostname, ASN, etc.
        """ # data is dictionary of the JSON response from ipinfo.io/json # TODO: order the listing  # position 0 specified as info sub-menu deleted and re-added later when updated
self