• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(6854)  |  Call(6854)  |  Derive(0)  |  Import(0)
Append(self, int id, String text=EmptyString, String help=EmptyString, 
    int kind=ITEM_NORMAL) -> MenuItem

src/e/d/Editra-0.5.72/src/ed_cmdbar.py   Editra(Download)
                        if not item.GetLabel():
                            continue
 
                        self._menu.Append(item.GetId(),
                                          item.GetLabel(),
                                          kind=wx.ITEM_CHECK)
                        self._menu.Check(item.GetId(), item.IsShown())

src/w/x/wxPython-In-Action-HEAD/wxDesigner/grid_sizer/grid_sizer1_wdr.py   wxPython-In-Action(Download)
    item1.AppendSeparator()
 
    item3 = wx.Menu()
    item3.Append( ID_SUBMENU_ITEM1, "Item1", "" )
    item3.Append( ID_SUBMENU_ITEM2, "Item2", "" )
    item3.Append( ID_SUBMENU_ITEM3, "Item3", "" )
    item1.AppendMenu( ID_FILE_SUBMENU, "Submenu", item3 )
 
 
    item4 = wx.Menu()
    item4.Append( ID_RADIO1, "Radio1", "", wx.ITEM_RADIO )
    item4.Append( ID_RADIO2, "Radio2", "", wx.ITEM_RADIO )

src/e/c/eclass-HEAD/trunk/eclass_builder/gui/menus.py   eclass(Download)
def getFileMenu():
    # File menu
    FileMenu = wx.Menu()
    FileMenu.Append(ID_NEW, "&" + _("New eBook"), _("Create a New Project"))
    FileMenu.Append(ID_OPEN, "&" +_("Open eBook"), _("Open an Existing Project"))
    FileMenu.Append(ID_CLOSE, "&" + _("Close eBook"), _("Close the Current Project"))
    FileMenu.AppendSeparator()
 
    FileMenu.Append(ID_IMPORT_PACKAGE, _("Import Package"))
 
    PubMenu = wx.Menu()
    PubMenu.Append(ID_PUBLISH, _("To web site"), _("Publish EClass to a web server"))
    PubMenu.Append(ID_PUBLISH_CD, _("To CD-ROM"), _("Publish EClass to a CD-ROM"))
    PubMenu.Append(ID_PUBLISH, _("To web site"), _("Publish EClass to a web server"))
    PubMenu.Append(ID_PUBLISH_CD, _("To CD-ROM"), _("Publish EClass to a CD-ROM"))
    #PubMenu.Append(ID_PUBLISH_PDF, _("To PDF"))
    PubMenu.Append(ID_PUBLISH_IMS, _("IMS Content Package"))
    PubMenu.Append(ID_PUBLISH_EPUB, _("ePub Package"))
    FileMenu.AppendMenu(ID_PUBLISH_MENU, "&" + _("Publish"), PubMenu, "")
 
    FileMenu.AppendSeparator()
    FileMenu.Append(ID_PROPS, _("Project Settings"), _("View and edit project settings"))
    FileMenu.AppendSeparator()
    FileMenu.Append(ID_EXIT, "&" + _("Exit"), _("Exit this Application"))
def getEditMenu():
    EditMenu = wx.Menu()
    EditMenu.Append(ID_CUT, _("Cut")+"\tCTRL+X")
    EditMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
 
    EditMenu.Append(ID_PASTE, _("Paste") + "\tCTRL+V")
    EditMenu.Append(ID_PASTE_BELOW, _("Paste Page After")+"\tCTRL+SHIFT+V")
    EditMenu.Append(ID_PASTE_CHILD, _("Paste Page As Child"))
 
    EditMenu.AppendSeparator()
    EditMenu.Append(ID_FIND, _("Find and Replace") + "\tCTRL+F")
def getInsertMenu():
    InsertMenu = wx.Menu()
    InsertMenu.Append(ID_INSERT_LINK, _("Hyperlink") + "\tCTRL+L")
    InsertMenu.Append(ID_INSERT_BOOKMARK, _("Bookmark") + "\tCTRL+SHIFT+B")
    InsertMenu.Append(ID_INSERT_HR, _("Horizontal Rule"))
    InsertMenu.AppendSeparator()
    InsertMenu.Append(ID_INSERT_IMAGE, _("Image"))
    InsertMenu.Append(ID_INSERT_VIDEO, _("Video"))
    InsertMenu.Append(ID_INSERT_TABLE, _("Table"))
def getFormatMenu():
    FormatMenu = wx.Menu()
    textstylemenu = wx.Menu()
    textstylemenu.Append(ID_BOLD, _("Bold") + "\tCTRL+B")
    textstylemenu.Append(ID_ITALIC, _("Italic") + "\tCTRL+I")
    textstylemenu.Append(ID_UNDERLINE, _("Underline") + "\tCTRL+U")
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_SUP, _("Superscript"))
    textstylemenu.Append(ID_TEXT_SUB, _("Subscript"))
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_FONT_COLOR, _("Text Color"))
    textstylemenu.Append(ID_BACK_COLOR, _("Background Color"))    
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_REMOVE_STYLES, _("Remove Formatting"))
    textstylemenu.Append(ID_BACK_COLOR, _("Background Color"))    
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_REMOVE_STYLES, _("Remove Formatting"))
    textstylemenu.Append(ID_REMOVE_LINK, _("Remove Link"))
    FormatMenu.AppendMenu(wx.NewId(), _("Text Style"), textstylemenu)
    FormatMenu.AppendSeparator()
    FormatMenu.Append(ID_CLEANUP_HTML, _("Clean Up HTML"))
    return FormatMenu
 
def getPageMenu(openWithMenu=None, isPopup=False):
    PageMenu = wx.Menu()
    PageMenu.Append(ID_ADD_MENU, _("New Page"))
def getPageMenu(openWithMenu=None, isPopup=False):
    PageMenu = wx.Menu()
    PageMenu.Append(ID_ADD_MENU, _("New Page"))
    if openWithMenu:
        PageMenu.AppendMenu(ID_OPEN_ITEM, _("Open With"), openWithMenu)
    PageMenu.Append(ID_SAVE, "&" + _("Save Page") + "\tCTRL+S", _("Save the Current Page"))
    PageMenu.Append(ID_TREE_REMOVE, _("Remove Page"), _("Remove the current page"))     
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_IMPORT_FILE, _("Import file..."))
    PageMenu.AppendSeparator()
 
    if isPopup:
        PageMenu.Append(ID_CUT, _("Cut")+"\tCTRL+X")
        PageMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
        PageMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
 
        PasteMenu2 = wx.Menu()
        PasteMenu2.Append(ID_PASTE_BELOW, _("Paste After")+"\tCTRL+V")
        PasteMenu2.Append(ID_PASTE_CHILD, _("Paste As Child"))
        PageMenu.AppendMenu(ID_PASTE, _("Paste"), PasteMenu2)
 
    PageMenu.Append(ID_TREE_MOVEUP, _("Move Page Up"), _("Move the selected page higher in the tree"))
    PageMenu.Append(ID_TREE_MOVEDOWN, _("Move Page Down"), _("Move the selected page lower in the tree"))   
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_UPLOAD_PAGE, _("Upload Page"), _("Upload Page to FTP Server"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_TREE_EDIT, _("Page Properties"), _("Edit Page Properties"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_TREE_EDIT, _("Page Properties"), _("Edit Page Properties"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_EDIT_SOURCE, _("Edit Page Source"), _("Edit Page Source"))
 
    return PageMenu
 
def getToolsMenu():
    ToolsMenu = wx.Menu()
    #ToolsMenu.Append(ID_THEME, _("Change Theme"))
    ToolsMenu.Append(ID_LINKCHECK, _("Check Links"))
    ToolsMenu.AppendSeparator()
    ToolsMenu.Append(ID_SETTINGS, _("Options"), _("Modify Program Options"))
def getHelpMenu():
    HelpMenu = wx.Menu()
    HelpMenu.Append(wx.ID_ABOUT, _("About Eclass"), _("About Eclass.Builder"))
    HelpMenu.Append(ID_HELP, _("Help"), _("EClass.Builder Help"))
    HelpMenu.Append(ID_BUG, _("Provide Feedback"), _("Submit feature requests or bugs"))
 
    return HelpMenu
 
def getWindowMenu():
    WindowMenu = wx.Menu()
    WindowMenu.Append(ID_CONTACTS, _("Contact Manager"))
    WindowMenu.Append(ID_ERRORLOG, _("Error Viewer"))
    WindowMenu.Append(ID_ACTIVITY, _("Activity Monitor"), _("View status of background activties."))

src/e/c/eclass-HEAD/eclass_builder/gui/menus.py   eclass(Download)
def getFileMenu():
    # File menu
    FileMenu = wx.Menu()
    FileMenu.Append(ID_NEW, "&" + _("New eBook"), _("Create a New Project"))
    FileMenu.Append(ID_OPEN, "&" +_("Open eBook"), _("Open an Existing Project"))
    FileMenu.Append(ID_CLOSE, "&" + _("Close eBook"), _("Close the Current Project"))
    FileMenu.AppendSeparator()
 
    FileMenu.Append(ID_IMPORT_PACKAGE, _("Import Package"))
 
    PubMenu = wx.Menu()
    PubMenu.Append(ID_PUBLISH, _("To web site"), _("Publish EClass to a web server"))
    PubMenu.Append(ID_PUBLISH_CD, _("To CD-ROM"), _("Publish EClass to a CD-ROM"))
    PubMenu.Append(ID_PUBLISH, _("To web site"), _("Publish EClass to a web server"))
    PubMenu.Append(ID_PUBLISH_CD, _("To CD-ROM"), _("Publish EClass to a CD-ROM"))
    #PubMenu.Append(ID_PUBLISH_PDF, _("To PDF"))
    PubMenu.Append(ID_PUBLISH_IMS, _("IMS Content Package"))
    PubMenu.Append(ID_PUBLISH_EPUB, _("ePub Package"))
    FileMenu.AppendMenu(ID_PUBLISH_MENU, "&" + _("Publish"), PubMenu, "")
 
    FileMenu.AppendSeparator()
    FileMenu.Append(ID_PROPS, _("Project Settings"), _("View and edit project settings"))
    FileMenu.AppendSeparator()
    FileMenu.Append(ID_EXIT, "&" + _("Exit"), _("Exit this Application"))
def getEditMenu():
    EditMenu = wx.Menu()
    EditMenu.Append(ID_CUT, _("Cut")+"\tCTRL+X")
    EditMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
 
    EditMenu.Append(ID_PASTE, _("Paste") + "\tCTRL+V")
    EditMenu.Append(ID_PASTE_BELOW, _("Paste Page After")+"\tCTRL+SHIFT+V")
    EditMenu.Append(ID_PASTE_CHILD, _("Paste Page As Child"))
 
    EditMenu.AppendSeparator()
    EditMenu.Append(ID_FIND, _("Find and Replace") + "\tCTRL+F")
def getInsertMenu():
    InsertMenu = wx.Menu()
    InsertMenu.Append(ID_INSERT_LINK, _("Hyperlink") + "\tCTRL+L")
    InsertMenu.Append(ID_INSERT_BOOKMARK, _("Bookmark") + "\tCTRL+SHIFT+B")
    InsertMenu.Append(ID_INSERT_HR, _("Horizontal Rule"))
    InsertMenu.AppendSeparator()
    InsertMenu.Append(ID_INSERT_IMAGE, _("Image..."))
    InsertMenu.Append(ID_INSERT_TABLE, _("Table"))
    return InsertMenu
 
def getFormatMenu():
    FormatMenu = wx.Menu()
    textstylemenu = wx.Menu()
    textstylemenu.Append(ID_BOLD, _("Bold") + "\tCTRL+B")
def getFormatMenu():
    FormatMenu = wx.Menu()
    textstylemenu = wx.Menu()
    textstylemenu.Append(ID_BOLD, _("Bold") + "\tCTRL+B")
    textstylemenu.Append(ID_ITALIC, _("Italic") + "\tCTRL+I")
    textstylemenu.Append(ID_UNDERLINE, _("Underline") + "\tCTRL+U")
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_SUP, _("Superscript"))
    textstylemenu.Append(ID_TEXT_SUB, _("Subscript"))
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_FONT_COLOR, _("Text Color"))
    textstylemenu.Append(ID_BACK_COLOR, _("Background Color"))    
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_REMOVE_STYLES, _("Remove Formatting"))
    textstylemenu.Append(ID_BACK_COLOR, _("Background Color"))    
    textstylemenu.AppendSeparator()
    textstylemenu.Append(ID_TEXT_REMOVE_STYLES, _("Remove Formatting"))
    textstylemenu.Append(ID_REMOVE_LINK, _("Remove Link"))
    FormatMenu.AppendMenu(wx.NewId(), _("Text Style"), textstylemenu)
    FormatMenu.AppendSeparator()
    FormatMenu.Append(ID_CLEANUP_HTML, _("Clean Up HTML"))
    return FormatMenu
 
def getPageMenu(openWithMenu=None, isPopup=False):
    PageMenu = wx.Menu()
    PageMenu.Append(ID_ADD_MENU, _("New Page"))
def getPageMenu(openWithMenu=None, isPopup=False):
    PageMenu = wx.Menu()
    PageMenu.Append(ID_ADD_MENU, _("New Page"))
    if openWithMenu:
        PageMenu.AppendMenu(ID_OPEN_ITEM, _("Open With"), openWithMenu)
    PageMenu.Append(ID_SAVE, "&" + _("Save Page") + "\tCTRL+S", _("Save the Current Page"))
    PageMenu.Append(ID_TREE_REMOVE, _("Remove Page"), _("Remove the current page"))     
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_IMPORT_FILE, _("Import file..."))
    PageMenu.AppendSeparator()
 
    if isPopup:
        PageMenu.Append(ID_CUT, _("Cut")+"\tCTRL+X")
        PageMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
        PageMenu.Append(ID_COPY, _("Copy")+"\tCTRL+C")
 
        PasteMenu2 = wx.Menu()
        PasteMenu2.Append(ID_PASTE_BELOW, _("Paste After")+"\tCTRL+V")
        PasteMenu2.Append(ID_PASTE_CHILD, _("Paste As Child"))
        PageMenu.AppendMenu(ID_PASTE, _("Paste"), PasteMenu2)
 
    PageMenu.Append(ID_TREE_MOVEUP, _("Move Page Up"), _("Move the selected page higher in the tree"))
    PageMenu.Append(ID_TREE_MOVEDOWN, _("Move Page Down"), _("Move the selected page lower in the tree"))   
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_UPLOAD_PAGE, _("Upload Page"), _("Upload Page to FTP Server"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_TREE_EDIT, _("Page Properties"), _("Edit Page Properties"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_TREE_EDIT, _("Page Properties"), _("Edit Page Properties"))
    PageMenu.AppendSeparator()
    PageMenu.Append(ID_EDIT_SOURCE, _("Edit Page Source"), _("Edit Page Source"))
 
    return PageMenu
 
def getToolsMenu():
    ToolsMenu = wx.Menu()
    #ToolsMenu.Append(ID_THEME, _("Change Theme"))
    ToolsMenu.Append(ID_LINKCHECK, _("Check Links"))
    ToolsMenu.AppendSeparator()
    ToolsMenu.Append(ID_SETTINGS, _("Options"), _("Modify Program Options"))
def getHelpMenu():
    HelpMenu = wx.Menu()
    HelpMenu.Append(wx.ID_ABOUT, _("About Eclass"), _("About Eclass.Builder"))
    HelpMenu.Append(ID_HELP, _("Help"), _("EClass.Builder Help"))
    HelpMenu.Append(ID_BUG, _("Provide Feedback"), _("Submit feature requests or bugs"))
 
    return HelpMenu
 
def getWindowMenu():
    WindowMenu = wx.Menu()
    WindowMenu.Append(ID_CONTACTS, _("Contact Manager"))
    WindowMenu.Append(ID_ERRORLOG, _("Error Viewer"))
    WindowMenu.Append(ID_ACTIVITY, _("Activity Monitor"), _("View status of background activties."))

src/s/a/salstat-HEAD/sal.py   salstat(Download)
    def __init__(self, parent, log):
        wx.Frame.__init__(self, parent, -1,"SalStat Plot (Basic!)", \
                                    size=(500,400))
        file_menu = wx.Menu()
        edit_menu = wx.Menu()
        title_menu = wx.Menu()
        file_menu.Append(ID_FILE_GSAVEAS, 'Save &As...')
        file_menu.Append(ID_FILE_GPRINTSETUP, 'Page Setup...')
        file_menu.Append(ID_FILE_GPRINTPREVIEW, 'Print Preview...')
        file_menu.Append(ID_FILE_GPRINT, '&Print...')
        file_menu.Append(ID_FILE_GCLOSE, '&Close')
        title_menu.Append(ID_TITLE_GTITLE, '&Graph Title...')
        title_menu.Append(ID_TITLE_GXAXIS, '&X Axis Label...')
        title_menu.Append(ID_TITLE_GYAXIS, '&Y Axis Label...')
        title_menu.Append(ID_TITLE_GTITLE, '&Graph Title...')
        title_menu.Append(ID_TITLE_GXAXIS, '&X Axis Label...')
        title_menu.Append(ID_TITLE_GYAXIS, '&Y Axis Label...')
        title_menu.Append(ID_TITLE_LEGEND, '&Enable Legend', kind=wx.ITEM_CHECK)
        title_menu.Append(ID_TITLE_GRID, 'Enable &Grid', kind=wx.ITEM_CHECK)
        gmenuBar = wx.MenuBar()
        gmenuBar.Append(file_menu, '&File')

src/r/o/roreditor-HEAD/trunk/lib_windows/wx/lib/pydocview.py   roreditor(Download)
        menuBar = wx.MenuBar()
 
        fileMenu = wx.Menu()
        fileMenu.Append(wx.ID_NEW, _("&New...\tCtrl+N"), _("Creates a new document"))
        fileMenu.Append(wx.ID_OPEN, _("&Open...\tCtrl+O"), _("Opens an existing document"))
        fileMenu.Append(wx.ID_CLOSE, _("&Close"), _("Closes the active document"))
        if not sdi:
            fileMenu.Append(wx.ID_CLOSE_ALL, _("Close A&ll"), _("Closes all open documents"))
        fileMenu.AppendSeparator()
        fileMenu.Append(wx.ID_SAVE, _("&Save\tCtrl+S"), _("Saves the active document"))
        fileMenu.Append(wx.ID_SAVEAS, _("Save &As..."), _("Saves the active document with a new name"))
        fileMenu.Append(SAVEALL_ID, _("Save All\tCtrl+Shift+A"), _("Saves the all active documents"))
        wx.EVT_MENU(self, SAVEALL_ID, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, SAVEALL_ID, self.ProcessUpdateUIEvent)
        fileMenu.AppendSeparator()
        fileMenu.Append(wx.ID_PRINT, _("&Print\tCtrl+P"), _("Prints the active document"))
        fileMenu.Append(wx.ID_PREVIEW, _("Print Pre&view"), _("Displays full pages"))
        fileMenu.Append(wx.ID_PRINT_SETUP, _("Page Set&up"), _("Changes page layout settings"))
        fileMenu.AppendSeparator()
        if wx.Platform == '__WXMAC__':
            fileMenu.Append(wx.ID_EXIT, _("&Quit"), _("Closes this program"))
        else:
            fileMenu.Append(wx.ID_EXIT, _("E&xit"), _("Closes this program"))
        menuBar.Append(fileMenu, _("&File"));
 
        editMenu = wx.Menu()
        editMenu.Append(wx.ID_UNDO, _("&Undo\tCtrl+Z"), _("Reverses the last action"))
        editMenu.Append(wx.ID_REDO, _("&Redo\tCtrl+Y"), _("Reverses the last undo"))
        editMenu.AppendSeparator()
        #item = wxMenuItem(self.editMenu, wxID_CUT, _("Cu&t\tCtrl+X"), _("Cuts the selection and puts it on the Clipboard"))
        #item.SetBitmap(getCutBitmap())
        #editMenu.AppendItem(item)
        editMenu.Append(wx.ID_CUT, _("Cu&t\tCtrl+X"), _("Cuts the selection and puts it on the Clipboard"))
        wx.EVT_MENU(self, wx.ID_CUT, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_CUT, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_COPY, _("&Copy\tCtrl+C"), _("Copies the selection and puts it on the Clipboard"))
        editMenu.Append(wx.ID_COPY, _("&Copy\tCtrl+C"), _("Copies the selection and puts it on the Clipboard"))
        wx.EVT_MENU(self, wx.ID_COPY, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_COPY, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_PASTE, _("&Paste\tCtrl+V"), _("Inserts Clipboard contents"))
        wx.EVT_MENU(self, wx.ID_PASTE, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_PASTE, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_CLEAR, _("&Delete"), _("Erases the selection"))
        wx.EVT_MENU(self, wx.ID_CLEAR, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_CLEAR, self.ProcessUpdateUIEvent)
        editMenu.AppendSeparator()
        editMenu.Append(wx.ID_SELECTALL, _("Select A&ll\tCtrl+A"), _("Selects all available data"))
        menuBar.Append(viewMenu, _("&View"))
 
        helpMenu = wx.Menu()
        helpMenu.Append(wx.ID_ABOUT, _("&About" + " " + wx.GetApp().GetAppName()), _("Displays program information, version number, and copyright"))
        menuBar.Append(helpMenu, _("&Help"))
 
        wx.EVT_MENU(self, wx.ID_ABOUT, self.OnAbout)
        if index > -1:
            doc = self._notebook.GetPage(index).GetView().GetDocument()
            id = wx.NewId()
            menu.Append(id, _("Close"))
            def OnRightMenuSelect(event):
                doc.DeleteAllViews()
            wx.EVT_MENU(self, id, OnRightMenuSelect)
            if self._notebook.GetPageCount() > 1:
                id = wx.NewId()
                menu.Append(id, _("Close All but \"%s\"" % doc.GetPrintableName()))
        if toolsMenu:
            if toolsMenu.GetMenuItemCount():
                toolsMenu.AppendSeparator()
            toolsMenu.Append(self._toolOptionsID, _("&Options..."), _("Sets options"))
            wx.EVT_MENU(frame, self._toolOptionsID, frame.ProcessEvent)
 
 
            if not _WINDOWS:  # Arrange All and window navigation doesn't work on Linux
                return
 
            item = windowMenu.Append(self.ARRANGE_WINDOWS_ID, _("&Arrange All"), _("Arrange the open windows"))
            wx.EVT_MENU(frame, self.ARRANGE_WINDOWS_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.ARRANGE_WINDOWS_ID, frame.ProcessUpdateUIEvent)
            windowMenu.AppendSeparator()
 
            for i, id in enumerate(self._selectWinIds):
                wx.EVT_MENU(frame, id, frame.ProcessEvent)
            wx.EVT_MENU(frame, self.SELECT_MORE_WINDOWS_ID, frame.ProcessEvent)
        elif wx.GetApp().GetUseTabbedMDI():
            item = windowMenu.Append(self.SELECT_PREV_WINDOW_ID, _("Previous"), _("Previous Tab"))
            item = windowMenu.Append(self.SELECT_PREV_WINDOW_ID, _("Previous"), _("Previous Tab"))
            wx.EVT_MENU(frame, self.SELECT_PREV_WINDOW_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.SELECT_PREV_WINDOW_ID, frame.ProcessUpdateUIEvent)
            item = windowMenu.Append(self.SELECT_NEXT_WINDOW_ID, _("Next"), _("Next Tab"))
            wx.EVT_MENU(frame, self.SELECT_NEXT_WINDOW_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.SELECT_NEXT_WINDOW_ID, frame.ProcessUpdateUIEvent)
            item = windowMenu.Append(self.CLOSE_CURRENT_WINDOW_ID, _("Close Current\tCtrl+F4"), _("Close Current Tab"))

src/b/i/bitpim-HEAD/bitpim/src/gui.py   bitpim(Download)
        def _create_menu(self):
            _menu=wx.Menu()
            _id=wx.NewId()
            if self.mw.IsIconized():
                _menu.Append(_id, 'Restore')
                wx.EVT_MENU(self, _id, self.OnRestore)
            else:
                _menu.Append(_id, 'Minimize')
                wx.EVT_MENU(self, _id, self.OnMinimize)
            _menu.AppendSeparator()
            _id=wx.NewId()
            _menu.Append(_id, 'Close')
        # menu.Append(guihelper.ID_FILENEW,  "&New", "Start from new")
        # menu.Append(guihelper.ID_FILEOPEN, "&Open", "Open a file")
        # menu.Append(guihelper.ID_FILESAVE, "&Save", "Save your work")
        menu.Append(guihelper.ID_FILEPRINT, "&Print...", "Print phonebook")
        # menu.AppendSeparator()
 
        # imports
        impmenu=wx.Menu()
        for x, desc, help, func in importexport.GetPhonebookImports():
            if isinstance(func, tuple):
                # submenu
                _submenu=wx.Menu()
                for _id, _desc, _help, _func in func:
                    _submenu.Append(_id, _desc, _help)
                        wx.EVT_MENU(self, _id, MenuCallback(_func, self))
                impmenu.AppendMenu(x, desc, _submenu, help)
            else:
                impmenu.Append(x, desc, help)
                wx.EVT_MENU(self, x, MenuCallback(func, self) )
 
        menu.AppendMenu(guihelper.ID_FILEIMPORT, "&Import", impmenu)
 
        # exports
        expmenu=wx.Menu()
        for x, desc, help, func in importexport.GetPhonebookExports():
            expmenu.Append(x, desc, help)
 
        if not guihelper.IsMac():
            menu.AppendSeparator()
            menu.Append(guihelper.ID_FILEEXIT, "E&xit", "Close down this program")
        menuBar.Append(menu, "&File");
        self.__menu_edit=menu=wx.Menu()
        menu.Append(guihelper.ID_EDITSELECTALL, "&Select All\tCtrl+A", "Select All")
        menu.AppendSeparator()
        menu.Append(guihelper.ID_EDITADDENTRY, "&New...\tCtrl+N", "Add an item")
        menu.Append(guihelper.ID_EDITCOPY, "&Copy\tCtrl+C", "Copy to the clipboard")
        menu.Append(guihelper.ID_EDITPASTE,"&Paste\tCtrl+V", "Paste from the clipboard")
        menu.Append(guihelper.ID_EDITDELETEENTRY, "&Delete", "Delete currently selected entry")
        menu.Append(guihelper.ID_EDITRENAME, "&Rename\tF2", "Rename currently selected entry")
        menu.Append(guihelper.ID_EDITDELETEENTRY, "&Delete", "Delete currently selected entry")
        menu.Append(guihelper.ID_EDITRENAME, "&Rename\tF2", "Rename currently selected entry")
        menu.AppendSeparator()
        menu.Append(guihelper.ID_EDITDETECT,
                    "D&etect Phone", "Auto Detect Phone")
        if guihelper.IsMac():
            wx.App_SetMacPreferencesMenuItemId(guihelper.ID_EDITSETTINGS)
            menu.Append(guihelper.ID_EDITSETTINGS, "Pre&ferences...", "Edit Settings")
        else:
            menu.AppendSeparator()
            menu.Append(guihelper.ID_EDITSETTINGS, "&Settings", "Edit settings")
        menuBar.Append(menu, "&Edit");
 
        menu=wx.Menu()
        menu.Append(guihelper.ID_DATAGETPHONE, "Get Phone &Data ...", "Loads data from the phone")
        menu.Append(guihelper.ID_DATASENDPHONE, "&Send Phone Data ...", "Sends data to the phone")
        menu.Append(guihelper.ID_DATAHISTORICAL, "&Historical Data ...", "View Current & Historical Data")
        menu.AppendSeparator()
        menu.Append(guihelper.ID_DATANEWDB, 'Create New Storage ...',
                    'Create a New BitPim Storage Area')
        menuBar.Append(menu, "&Data")
 
        menu=wx.Menu()
        menu.Append(guihelper.ID_VIEWCOLUMNS, "&Columns ...", "Which columns to show")
        menu.AppendCheckItem(guihelper.ID_VIEWPREVIEW, "&Phonebook Preview", "Toggle Phonebook Preview Pane")
        menu.AppendSeparator()
        menu.AppendCheckItem(guihelper.ID_VIEWLOGDATA, "&View protocol logging", "View protocol logging information")
        menu.Append(guihelper.ID_VIEWCLEARLOGS, "Clear &Logs", "Clears the contents of the log panes")
        menu.AppendSeparator()
        menu.AppendCheckItem(guihelper.ID_VIEWFILESYSTEM, "View &Filesystem", "View filesystem on the phone")
        menu.AppendSeparator()
        menu.Append(guihelper.ID_EDITPHONEINFO,
                    "Phone &Info", "Display Phone Information")
        menuBar.Append(menu, "&View")
        # Debug menu
        menu=wx.Menu()
        menu.Append(guihelper.ID_DR_SETTINGS, '&Data Recording',
        # Help menu
        menu=wx.Menu()
        if guihelper.IsMac():
            menu.Append(guihelper.ID_HELPHELP, "&Help on this panel", "Help for the panel you are looking at")
        else:
            menu.Append(guihelper.ID_HELPHELP, "&Help", "Help for the panel you are looking at")
        menu.Append(guihelper.ID_HELPTOUR, "&Tour", "Tour of BitPim")
        menu.Append(guihelper.ID_HELPCONTENTS, "&Contents", "Table of contents for the online help")
        menu.Append(guihelper.ID_HELPHOWTOS, "H&owTos", "Help on how to do certain function")
        menu.Append(guihelper.ID_HELPFAQ, "&FAQ", "Frequently Asked Questions")
        menu.Append(guihelper.ID_HELPSUPPORT, "&Support", "Getting support for BitPim")
        menu.Append(guihelper.ID_HELPPHONE, "Your &Phone", "Help on specific phonemodel")
        menu.Append(guihelper.ID_HELPPHONE, "Your &Phone", "Help on specific phonemodel")
        if version.vendor=='official':
            menu.AppendSeparator()
            menu.Append(guihelper.ID_HELP_UPDATE, "&Check for Update", "Check for any BitPim Update")
        if guihelper.IsMac():
            wx.App_SetMacAboutMenuItemId(guihelper.ID_HELPABOUT)
            menu.Append(guihelper.ID_HELPABOUT, "&About BitPim", "Display program information")
            wx.App_SetMacHelpMenuTitleName("&Help")
            wx.App_SetMacExitMenuItemId(guihelper.ID_FILEEXIT)
        else:
            menu.AppendSeparator()
            menu.Append(guihelper.ID_HELPABOUT, "&About", "Display program information")

src/s/e/sepy-HEAD/core/ui/panels/functions/__init__.py   sepy(Download)
    def showFunctionMenu(self, event):
        """ show menu in the members panel """
        def_mode = self.parent.reg.ReadInt("preferences/general/function_display_mode", 0)
        menu = wx.Menu()
        menu.Append(core.system.id.ID_REFRESH_FN, _("Refresh"))
        menu.AppendSeparator()
        menu.Append(core.system.id.ID_FN_MODE_1, _("Mode 1"),"", 1)
        menu.Append(core.system.id.ID_FN_MODE_2, _("Mode 2"),"", 1)
                menu = wx.Menu()
                id6 = wx.NewId()
                id7 = wx.NewId()
                menu.Append(id6, _("Expand"))
                menu.Append(id7, _("Collapse"))
                self.tree.Bind(wx.EVT_MENU, self.__expandNode,    id=id6)
                self.tree.Bind(wx.EVT_MENU, self.__collapseNode,  id=id7)
                    cname = ndata[1].groupdict().get("import_class","").strip()
                    if self.parent.GetPathFromImports(cname):
                        id_import = wx.NewId()
                        menu.Append(id_import, _("Open %s") % ndata[1].groupdict().get("import_class",""))
                        self.tree.Bind(wx.EVT_MENU, self.__openImport,   id=id_import)
                        menu.AppendSeparator()
                except Exception, why:
                    raise
 
        menu.Append(id8, _("Expand"))
        menu.Append(id9, _("Collapse"))
        """ append the GOTO menuitem only if not a imports group """
        if self.tree.GetItemImage(item) != 12:
            menu.AppendSeparator()
            menu.Append(oid, '%s "%s"' % (_("Goto"), ndata[2]))
            if self.tree.GetItemData(item).GetData()[1]  == False:
                menu.Enable(oid, 0)
 
        """ append the insert menu only if not an import item """
        if self.tree.GetItemImage(item) < 10:
            menu.AppendSeparator()
            id = wx.NewId()
            menu1 = wx.Menu()
            menu1.Append(id, ndata[2], ndata[2])
                if self.tree.GetItemParent(item) == self.tree.GetRootItem():
                    break
                id = wx.NewId()
                menu1.Append(id, text, text)
                self.tree.Bind(wx.EVT_MENU, self.insertNode, id=id)
            menu.AppendMenu(wx.NewId(), _("Insert"), menu1)
            self.insert_menu = menu

src/p/y/PyHtmlEdit-HEAD/pyhtmledit.py   PyHtmlEdit(Download)
        filemenu = wx.Menu()
        # use ID_ for future easy reference - much better that "48", "404" etc
        # The & character indicates the short cut key
        filemenu.Append(ID_OPEN, "&Open"," Open a file to edit")
        filemenu.AppendSeparator()
        filemenu.Append(ID_SAVE, "&Save"," Save file")
        filemenu.AppendSeparator()
        filemenu.Append(ID_EXIT,"E&xit"," Terminate the program")
 
        inline_menu = wx.Menu()
        inline_menu.Append(ID_CITE, "&cite", "Citation")
        inline_menu.Append(ID_EM, "&em", "Emphasis")
        inline_menu.Append(ID_CODE, "c&ode","Programming code")
        inline_menu.Append(ID_SPAN, "spa&n","generic inline element")
        inline_menu.Append(ID_EM, "&em", "Emphasis")
        inline_menu.Append(ID_CODE, "c&ode","Programming code")
        inline_menu.Append(ID_SPAN, "spa&n","generic inline element")
        inline_menu.Append(ID_STRONG, "&strong", "Strong emphasis")
        inline_menu.Append(ID_SUB, "su&b","Subscript")
        inline_menu.Append(ID_SUP, "su&p","Superscript")
 
        block_menu = wx.Menu()
        block_menu.Append(ID_BLOCKQUOTE, "&blockquote", "Block quotation")
        block_menu.Append(ID_DIV, "&div", "Generic block element")
        block_menu.Append(ID_P, "&p", "Paragraph")
        block_menu.Append(ID_PINITIAL, "p.&initial", "First paragraph in an article or section")
        block_menu.Append(ID_PPHOTO, "p.ph&oto", "Paragraph with photo")
        block_menu.Append(ID_PRE, "pr&e", "Preformatted block text")
        block_menu.Append(ID_PRE, "pr&e", "Preformatted block text")
 
        heading_menu = wx.Menu()
        heading_menu.Append(ID_H1, "h&1", "Heading 1")
        heading_menu.Append(ID_H2, "h&2", "Heading 2")
        heading_menu.Append(ID_H3, "h&3", "Heading 3")
        heading_menu.Append(ID_H4, "h&4", "Heading 4")
        heading_menu.Append(ID_H5, "h&5", "Heading 5")
        heading_menu.Append(ID_H6, "h&6", "Heading 6")
 
        link_menu = wx.Menu()
        link_menu.Append(ID_A, "&a", "Anchor")
        link_menu.Append(ID_HREF, "a &href", "Hyperlink")
        link_menu.Append(ID_HREF, "a &href", "Hyperlink")
 
        nested_menu = wx.Menu()
        nested_menu.Append(ID_OL, "&ol", "Ordered list")
        nested_menu.Append(ID_UL, "&ul", "Unordered List")
        nested_menu.Append(ID_TABLECONVERT, "table (&convert)", "Convert existing tab data to a table")
        nested_menu.Append(ID_TABLENEW, "table (&new)", "Create new empty table with 4 rows and 4 columns")
        format_menu = wx.Menu()
        #format_menu.Append(ID_SWITCHMODE, "Switch &Mode", "Alternate between Edit Mode and Preview Mode")
        #format_menu.AppendSeparator()
        format_menu.Append(ID_REPLACE, '&Replace', 'Find and Replace a search string')
        format_menu.AppendSeparator()
        format_menu.Append(ID_LCASE, "&lcase", "Convert text to lowercase")
        format_menu.Append(ID_UCASE, "&UCASE", "Convert text to uppercase")
        format_menu.Append(ID_PCASE, "&Pcase", "Convert text to proper case (capitalized)")
        format_menu.AppendSeparator()
        format_menu.Append(ID_CLEAN, "&Clean", "Clean up MS Word characters and multiple spaces")
        format_menu.Append(ID_SQL, "&SaferSQL", "Replace SQL punctuation with entity codes")
        format_menu.Append(ID_MISSPELLINGS, 'Common &Misspellings', 'Replace commonly misspelled words with the correct spelling')
        format_menu.Append(ID_MISSPELLINGS, 'Common &Misspellings', 'Replace commonly misspelled words with the correct spelling')
 
        tools_menu = wx.Menu()
        tools_menu.Append(ID_WORDCOUNT, "&Word Count", "Word count, line count, etc.")
        tools_menu.Append(ID_strip_html, "&Strip HTML", "Remove all HTML elements and leave the text")
        tools_menu.Append(ID_HTML2TEXT, "&Html2Text", "Convert HTML into Markdown-formatted plain text")
        if markdown != False:
            tools_menu.Append(ID_MARKDOWN, "&Markdown", "Convert Markdown-formatted plain text into HTML")
 
        about_menu = wx.Menu()
        about_menu.Append(ID_ABOUT, "&About PyHtmlEdit","Information about this program")
        if github is not False:
            about_menu.Append(ID_UPDATED, "&Check Version","Checks this program's GitHub repository to see if there is a newer version.")

src/r/o/roreditor-HEAD/lib_windows/wx/lib/pydocview.py   roreditor(Download)
        menuBar = wx.MenuBar()
 
        fileMenu = wx.Menu()
        fileMenu.Append(wx.ID_NEW, _("&New...\tCtrl+N"), _("Creates a new document"))
        fileMenu.Append(wx.ID_OPEN, _("&Open...\tCtrl+O"), _("Opens an existing document"))
        fileMenu.Append(wx.ID_CLOSE, _("&Close"), _("Closes the active document"))
        if not sdi:
            fileMenu.Append(wx.ID_CLOSE_ALL, _("Close A&ll"), _("Closes all open documents"))
        fileMenu.AppendSeparator()
        fileMenu.Append(wx.ID_SAVE, _("&Save\tCtrl+S"), _("Saves the active document"))
        fileMenu.Append(wx.ID_SAVEAS, _("Save &As..."), _("Saves the active document with a new name"))
        fileMenu.Append(SAVEALL_ID, _("Save All\tCtrl+Shift+A"), _("Saves the all active documents"))
        wx.EVT_MENU(self, SAVEALL_ID, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, SAVEALL_ID, self.ProcessUpdateUIEvent)
        fileMenu.AppendSeparator()
        fileMenu.Append(wx.ID_PRINT, _("&Print\tCtrl+P"), _("Prints the active document"))
        fileMenu.Append(wx.ID_PREVIEW, _("Print Pre&view"), _("Displays full pages"))
        fileMenu.Append(wx.ID_PRINT_SETUP, _("Page Set&up"), _("Changes page layout settings"))
        fileMenu.AppendSeparator()
        if wx.Platform == '__WXMAC__':
            fileMenu.Append(wx.ID_EXIT, _("&Quit"), _("Closes this program"))
        else:
            fileMenu.Append(wx.ID_EXIT, _("E&xit"), _("Closes this program"))
        menuBar.Append(fileMenu, _("&File"));
 
        editMenu = wx.Menu()
        editMenu.Append(wx.ID_UNDO, _("&Undo\tCtrl+Z"), _("Reverses the last action"))
        editMenu.Append(wx.ID_REDO, _("&Redo\tCtrl+Y"), _("Reverses the last undo"))
        editMenu.AppendSeparator()
        #item = wxMenuItem(self.editMenu, wxID_CUT, _("Cu&t\tCtrl+X"), _("Cuts the selection and puts it on the Clipboard"))
        #item.SetBitmap(getCutBitmap())
        #editMenu.AppendItem(item)
        editMenu.Append(wx.ID_CUT, _("Cu&t\tCtrl+X"), _("Cuts the selection and puts it on the Clipboard"))
        wx.EVT_MENU(self, wx.ID_CUT, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_CUT, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_COPY, _("&Copy\tCtrl+C"), _("Copies the selection and puts it on the Clipboard"))
        editMenu.Append(wx.ID_COPY, _("&Copy\tCtrl+C"), _("Copies the selection and puts it on the Clipboard"))
        wx.EVT_MENU(self, wx.ID_COPY, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_COPY, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_PASTE, _("&Paste\tCtrl+V"), _("Inserts Clipboard contents"))
        wx.EVT_MENU(self, wx.ID_PASTE, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_PASTE, self.ProcessUpdateUIEvent)
        editMenu.Append(wx.ID_CLEAR, _("&Delete"), _("Erases the selection"))
        wx.EVT_MENU(self, wx.ID_CLEAR, self.ProcessEvent)
        wx.EVT_UPDATE_UI(self, wx.ID_CLEAR, self.ProcessUpdateUIEvent)
        editMenu.AppendSeparator()
        editMenu.Append(wx.ID_SELECTALL, _("Select A&ll\tCtrl+A"), _("Selects all available data"))
        menuBar.Append(viewMenu, _("&View"))
 
        helpMenu = wx.Menu()
        helpMenu.Append(wx.ID_ABOUT, _("&About" + " " + wx.GetApp().GetAppName()), _("Displays program information, version number, and copyright"))
        menuBar.Append(helpMenu, _("&Help"))
 
        wx.EVT_MENU(self, wx.ID_ABOUT, self.OnAbout)
        if index > -1:
            doc = self._notebook.GetPage(index).GetView().GetDocument()
            id = wx.NewId()
            menu.Append(id, _("Close"))
            def OnRightMenuSelect(event):
                doc.DeleteAllViews()
            wx.EVT_MENU(self, id, OnRightMenuSelect)
            if self._notebook.GetPageCount() > 1:
                id = wx.NewId()
                menu.Append(id, _("Close All but \"%s\"" % doc.GetPrintableName()))
        if toolsMenu:
            if toolsMenu.GetMenuItemCount():
                toolsMenu.AppendSeparator()
            toolsMenu.Append(self._toolOptionsID, _("&Options..."), _("Sets options"))
            wx.EVT_MENU(frame, self._toolOptionsID, frame.ProcessEvent)
 
 
            if not _WINDOWS:  # Arrange All and window navigation doesn't work on Linux
                return
 
            item = windowMenu.Append(self.ARRANGE_WINDOWS_ID, _("&Arrange All"), _("Arrange the open windows"))
            wx.EVT_MENU(frame, self.ARRANGE_WINDOWS_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.ARRANGE_WINDOWS_ID, frame.ProcessUpdateUIEvent)
            windowMenu.AppendSeparator()
 
            for i, id in enumerate(self._selectWinIds):
                wx.EVT_MENU(frame, id, frame.ProcessEvent)
            wx.EVT_MENU(frame, self.SELECT_MORE_WINDOWS_ID, frame.ProcessEvent)
        elif wx.GetApp().GetUseTabbedMDI():
            item = windowMenu.Append(self.SELECT_PREV_WINDOW_ID, _("Previous"), _("Previous Tab"))
            item = windowMenu.Append(self.SELECT_PREV_WINDOW_ID, _("Previous"), _("Previous Tab"))
            wx.EVT_MENU(frame, self.SELECT_PREV_WINDOW_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.SELECT_PREV_WINDOW_ID, frame.ProcessUpdateUIEvent)
            item = windowMenu.Append(self.SELECT_NEXT_WINDOW_ID, _("Next"), _("Next Tab"))
            wx.EVT_MENU(frame, self.SELECT_NEXT_WINDOW_ID, frame.ProcessEvent)
            wx.EVT_UPDATE_UI(frame, self.SELECT_NEXT_WINDOW_ID, frame.ProcessUpdateUIEvent)
            item = windowMenu.Append(self.CLOSE_CURRENT_WINDOW_ID, _("Close Current\tCtrl+F4"), _("Close Current Tab"))

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next