Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/f/e/FeedNotifier-HEAD/view.py   FeedNotifier(Download)
    def CreatePopupMenu(self):
        menu = wx.Menu()
        util.menu_item(menu, _('Add Feed...'), self.on_add_feed, 'icons/add.png')
        util.menu_item(menu, _('Preferences...'), self.on_settings, 'icons/cog.png')
        menu.AppendSeparator()
        if self.controller.enabled:
            util.menu_item(menu, _('Disable Updates'), self.on_disable, 'icons/delete.png')
            util.menu_item(menu, _('Update Now'), self.on_force_update, 'icons/transmit.png')
        else:
            util.menu_item(menu, _('Enable Updates'), self.on_enable, 'icons/accept.png')