All Samples(3697) | Call(3697) | Derive(0) | Import(0)
Append(self, int id, String text=EmptyString, String help=EmptyString,
int kind=ITEM_NORMAL) -> MenuItem
src/w/x/wxPython-In-Action-HEAD/demo/AUI_DockingWindowMgr.py wxPython-In-Action(Download)
file_menu = wx.Menu()
file_menu.Append(wx.ID_EXIT, "Exit")
view_menu = wx.Menu()
view_menu.Append(ID_CreateText, "Create Text Control")
view_menu.Append(ID_CreateHTML, "Create HTML Control")
view_menu.Append(ID_CreateTree, "Create Tree")
view_menu.Append(ID_CreateGrid, "Create Grid")
src/u/b/ubuntu-python-pyo-HEAD/pyolib/_wxwidgets.py ubuntu-python-pyo(Download)
self.menubar = wx.MenuBar()
self.fileMenu = wx.Menu()
self.fileMenu.Append(-1, 'Close\tCtrl+W', kind=wx.ITEM_NORMAL)
self.fileMenu.Bind(wx.EVT_MENU, self._destroy)
self.menubar.Append(self.fileMenu, "&File")
def __init__(self, parent, samples=None, tableclass=None):
wx.Frame.__init__(self, parent)
self.menubar = wx.MenuBar()
self.fileMenu = wx.Menu()
self.fileMenu.Append(-1, 'Close\tCtrl+W', kind=wx.ITEM_NORMAL)
self.menubar = wx.MenuBar()
self.fileMenu = wx.Menu()
self.fileMenu.Append(-1, 'Close\tCtrl+W', kind=wx.ITEM_NORMAL)
self.fileMenu.Bind(wx.EVT_MENU, self._destroy)
self.menubar.Append(self.fileMenu, "&File")
def __init__(self, parent, samples=None, size=None):
wx.Frame.__init__(self, parent)
self.menubar = wx.MenuBar()
self.fileMenu = wx.Menu()
self.fileMenu.Append(-1, 'Close\tCtrl+W', kind=wx.ITEM_NORMAL)
def __init__(self, parent, samples=None, size=None):
wx.Frame.__init__(self, parent)
self.menubar = wx.MenuBar()
self.fileMenu = wx.Menu()
self.fileMenu.Append(-1, 'Close\tCtrl+W', kind=wx.ITEM_NORMAL)
src/e/i/einstein-HEAD/trunk/GUI/einsteinMain.py einstein(Download)
self.PrintFullReport = self.submenuPrint.Append(-1, _U("full report"))
self.PrintQuestionnaire = self.submenuPrint.Append(-1, _U("questionnaire"))
self.NewProject = self.menuFile.Append(-1, _U("&New Project"))
self.OpenProject = self.menuFile.Append(-1, _U("&Open Project"))
self.ImportProject = self.menuFile.Append(-1, _U("&Import Project"))
src/f/r/freeblocksim-HEAD/trunk/drawPanelClass.py freeblocksim(Download)
menu = wx.Menu()
menu.Append(menu_DUPLICATE, "Duplicate")
menu.AppendSeparator()
menu.Append(menu_DELETE, "Delete")
menu.AppendSeparator()
menu.Append(menu_CONFIG, "Configuration...")
menu.AppendSeparator()
menu.Append(menu_ENTER, "Enter Subsystem...")
# Show Number Port
item = subMenu.Append(menu_PORTNUMBERCHECK,subMenuProps[0],kind=wx.ITEM_CHECK)
self.Bind(wx.EVT_MENU, self.onMenuProps, item)
self.Bind(wx.EVT_UPDATE_UI, self.onCheckNumberPort, item)
src/d/i/dispcalgui-HEAD/trunk/dispcalGUI/wxenhancedplot.py dispcalgui(Download)
menu = wx.Menu()
menu.Append(200, 'Page Setup...', 'Setup the printer page')
self.Bind(wx.EVT_MENU, self.OnFilePageSetup, id=200)
menu.Append(201, 'Print Preview...', 'Show the current plot on page')
self.Bind(wx.EVT_MENU, self.OnFilePrintPreview, id=201)
menu.Append(202, 'Print...', 'Print the current plot')
self.Bind(wx.EVT_MENU, self.OnFilePrint, id=202)
menu.Append(203, 'Save Plot...', 'Save current plot')
self.Bind(wx.EVT_MENU, self.OnSaveFile, id=203)
menu.Append(205, 'E&xit', 'Enough of this already!')
src/w/x/wxPython-In-Action-HEAD/Chapter-13/list_report_etc.py wxPython-In-Action(Download)
def MakeMenu(self):
mbar = wx.MenuBar()
menu = wx.Menu()
item = menu.Append(-1, "E&xit\tAlt-X")
self.Bind(wx.EVT_MENU, self.OnExit, item)
mbar.Append(menu, "&File")
menu = wx.Menu()
item = menu.Append(-1, "Sort ascending")
item = menu.Append(-1, "Sort ascending")
self.Bind(wx.EVT_MENU, self.OnSortAscending, item)
item = menu.Append(-1, "Sort descending")
self.Bind(wx.EVT_MENU, self.OnSortDescending, item)
item = menu.Append(-1, "Sort by submitter")
self.Bind(wx.EVT_MENU, self.OnSortBySubmitter, item)
menu.AppendSeparator()
item = menu.Append(-1, "Show selected")
src/f/r/freeblocksim-HEAD/trunk/app.py freeblocksim(Download)
self.fileMenu = wx.Menu()
self.fileMenu.Append(wx.ID_NEW, "New\tCTRL-N", "Create a new system")
self.fileMenu.Append(wx.ID_OPEN, "Open...\tCTRL-O", "Open an existing system")
self.fileMenu.Append(wx.ID_CLOSE, "Close\tCTRL-W", "Close the actual system")
self.fileMenu.AppendSeparator()
self.fileMenu.Append(wx.ID_SAVE, "Save\tCTRL-S", "Save the actual system")
self.fileMenu.Append(wx.ID_SAVEAS, "Save As...\tCTRL-SHIFT-S", "Save the actual system as...")
src/d/r/drpython-HEAD/trunk/drplugins/MyProject.py drpython(Download)
ID_UPDATE = DrFrame.GetNewId() //wx.NewId()
menu = wx.Menu()
menu.Append(ID_LOAD, "Load Project")
DrFrame.Bind(wx.EVT_MENU, OnLoadProject, id=ID_LOAD)
menu.Append(ID_SAVE, "Save Project")
DrFrame.Bind(wx.EVT_MENU, OnSaveProject, id=ID_SAVE)
if len(cfg.actualproject):
menu.AppendSeparator()
menu.Append(ID_UPDATE, "Update %s" %cfg.actualproject.split('/')[-1].split('.')[0])
id = 0
for s in cfg.recentprojects:
menu.Append(id, "Load %s" %s.split('/')[-1].split('.')[0])
DrFrame.Bind(wx.EVT_MENU, OnRecentProject, id=id)
id += 1
src/g/u/guiframe-0.9/gui_manager.py guiframe(Download)
self._tool_menu = wx.Menu()
id = wx.NewId()
self._tool_menu.Append(id, tool[0], tool[1])
wx.EVT_MENU(self, id, tool[2])
if self._tool_menu is not None:
if self.defaultPanel is not None:
id = wx.NewId()
self._help_menu.Append(id, '&Welcome', '')
self._help_menu.AppendSeparator()
wx.EVT_MENU(self, id, self.show_welcome_panel)
# Look for help item in plug-ins
for item in self.plugins:
if hasattr(item, "help"):
id = wx.NewId()
self._help_menu.Append(id,'&%s Help' % item.sub_menu, '')
self._help_menu.AppendSeparator()
id = wx.NewId()
self._help_menu.Append(id,'&About', 'Software information')
wx.EVT_MENU(self, id, self._onAbout)
style = self.__gui_style & GUIFRAME.MANAGER_ON
id = wx.NewId()
self._data_panel_menu = self._view_menu.Append(id,
'&Show Data Explorer', '')
wx.EVT_MENU(self, id, self.show_data_panel)
src/p/y/pyrx-HEAD/PyRxDev/PyRx/molNavigator.py pyrx(Download)
menu = wx.Menu()
autodockMenu = wx.Menu()
flexResiduesMenu = autodockMenu.Append(wx.ID_ANY, "Flexible Residues")
self.Bind(wx.EVT_MENU, self.OnFlexResidues, flexResiduesMenu)
menu.AppendMenu(wx.ID_ANY, "AutoDock", autodockMenu)
else:
return
else:
menu = wx.Menu()
hideMenu = menu.Append(wx.ID_ANY, "Toggle Visibility")
hideMenu = menu.Append(wx.ID_ANY, "Toggle Visibility")
self.Bind(wx.EVT_MENU, self.ToggleSelectionsVisibility, hideMenu)
removeMenu = menu.Append(wx.ID_ANY, "Remove Selected")
self.Bind(wx.EVT_MENU, self.RemoveSelected, removeMenu)
removeAllMenu = menu.Append(wx.ID_ANY, "Remove All")
displayMenu = wx.Menu()
if hasattr(node, 'allAtoms'):# and not hasattr(node, 'hetatm'):
self.displayLinesMenu = displayMenu.Append(wx.ID_ANY, "Lines", kind=wx.ITEM_CHECK)
self.Bind(wx.EVT_MENU, self.OnDisplayLines, self.displayLinesMenu)
if hasattr(node.allAtoms[0].assembly, 'lineActor') and node.allAtoms[0].assembly.lineActor.GetVisibility():
Previous 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 Next