Did I find the right examples for you? yes no

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

src/w/x/wxPython-HEAD/Chapter-05/badExample.py   wxPython(Download)
        menuBar = wx.MenuBar()
        menu1 = wx.Menu()
        openMenuItem = menu1.Append(-1, "&Open", "Copy in status bar")
        self.Bind(wx.EVT_MENU, self.OnOpen, openMenuItem)
        quitMenuItem = menu1.Append(-1, "&Quit", "Quit")
        self.Bind(wx.EVT_MENU, self.OnCloseWindow, quitMenuItem)
        menuBar.Append(menu1, "&File")
        menu2 = wx.Menu()
        copyItem = menu2.Append(-1, "&Copy", "Copy")
        copyItem = menu2.Append(-1, "&Copy", "Copy")
        self.Bind(wx.EVT_MENU, self.OnCopy, copyItem)
        cutItem = menu2.Append(-1, "C&ut", "Cut")
        self.Bind(wx.EVT_MENU, self.OnCut, cutItem)
        pasteItem = menu2.Append(-1, "Paste", "Paste")

src/s/p/SpanishAcquisition-1.0.3/examples/data_explorer.py   SpanishAcquisition(Download)
		menuBar.Append(menu, '&File')
 
		item = menu.Append(wx.ID_OPEN, '&Open...')
		self.Bind(wx.EVT_MENU, self.OnMenuFileOpen, item)
 
		item = menu.Append(wx.ID_CLOSE, '&Close')
		menu.AppendSeparator()
 
		self.filter_menu_item = menu.Append(wx.ID_ANY, '&Filters...')
		self.filter_menu_item.Enable(False)
		self.Bind(wx.EVT_MENU, self.OnMenuFileFilters, self.filter_menu_item)
 
		menu.AppendSeparator()
 
		item = menu.Append(wx.ID_EXIT, 'E&xit')
		menu.Append(wx.ID_ANY, ' 2D:').Enable(False)
 
		self.two_dimensional_menu = menu.Append(wx.ID_ANY, '&Curve...')
		self.Bind(wx.EVT_MENU, partial(self.create_plot, formats.two_dimensional),
				self.two_dimensional_menu)

src/w/x/wxPython-HEAD/Chapter-05/goodExample.py   wxPython(Download)
                menu.AppendSeparator()
                continue
            menuItem = menu.Append(-1, eachLabel, eachStatus)
            self.Bind(wx.EVT_MENU, eachHandler, menuItem)
        return menu

src/v/p/vpython-wx-HEAD/site-packages/visual/examples/widgets.py   vpython-wx(Download)
 
menu = wx.Menu()
item = menu.Append(-1, 'Rotate left', 'Make box rotate to the left')
w.win.Bind(wx.EVT_MENU, setleft, item)
 
item = menu.Append(-1, 'Rotate right', 'Make box rotate to the right')
w.win.Bind(wx.EVT_MENU, setright, item)
 
item = menu.Append(-1, 'Make red', 'Make box red')
w.win.Bind(wx.EVT_MENU, setred, item)
 
item = menu.Append(-1, 'Make cyan', 'Make box cyan')
w.win.Bind(wx.EVT_MENU, setcyan, item)
 

src/s/p/SpanishAcquisition-1.0.3/examples/acquisition.py   SpanishAcquisition(Download)
 
		### Devices.
		item = menu.Append(wx.ID_ANY, '&Devices...')
		self.Bind(wx.EVT_MENU, self.OnMenuConfigurationDevices, item)
 
		### Measurements.
		submenu = wx.Menu()
		menu.AppendMenu(wx.ID_ANY, '&Measurements', submenu)
 
		item = submenu.Append(wx.ID_ANY, 'Add &scalar...')
		self.Bind(wx.EVT_MENU, self.OnMenuConfigurationMeasurementsAddScalar, item)
 
		item = submenu.Append(wx.ID_ANY, 'Add &list...')
		self.Bind(wx.EVT_MENU, self.OnMenuConfigurationMeasurementsAddList, item)
 
		### Pulse program.
		item = menu.Append(wx.ID_ANY, '&Pulse program...')
 
		### About.
		item = menu.Append(wx.ID_ABOUT, '&About...')
		self.Bind(wx.EVT_MENU, self.OnMenuHelpAbout, item)
 

src/v/l/vlc-python-HEAD/examples/wxvlc.py   vlc-python(Download)
        self.frame_menubar = wx.MenuBar()
        self.file_menu = wx.Menu()
        self.file_menu.Append(1, "&Open", "Open from file..")
        self.file_menu.AppendSeparator()
        self.file_menu.Append(2, "&Close", "Quit")

src/m/a/matplotlib-HEAD/examples/user_interfaces/mathtext_wx.py   matplotlib(Download)
        # File Menu
        menu = wx.Menu()
        menu.Append(wx.ID_EXIT, "E&xit\tAlt-X", "Exit this simple sample")
        menuBar.Append(menu, "&File")
 

src/m/a/matplotlib-ancient-HEAD/examples/user_interfaces/mathtext_wx.py   matplotlib-ancient(Download)
        # File Menu
        menu = wx.Menu()
        menu.Append(wx.ID_EXIT, "E&xit\tAlt-X", "Exit this simple sample")
        menuBar.Append(menu, "&File")
 

src/p/y/python-registry-HEAD/samples/regview.py   python-registry(Download)
        menu_bar = wx.MenuBar()
        file_menu = wx.Menu()
        _open = file_menu.Append(ID_FILE_OPEN, '&Open File')
        self.Bind(wx.EVT_MENU, self.menu_file_open, _open)
        file_menu.AppendSeparator()
        _session_save = file_menu.Append(ID_FILE_SESSION_SAVE, '&Save Session')
        self.Bind(wx.EVT_MENU, self.menu_file_session_save, _session_save)
        _session_open = file_menu.Append(ID_FILE_SESSION_OPEN, '&Open Session')
        self.Bind(wx.EVT_MENU, self.menu_file_session_open, _session_open)
        file_menu.AppendSeparator()
        _exit = file_menu.Append(ID_FILE_EXIT, 'E&xit Program')
        self.Bind(wx.EVT_MENU, self.menu_file_exit, _exit)
        menu_bar.Append(file_menu, "&File")
 
        tab_menu = wx.Menu()
        _close = tab_menu.Append(ID_TAB_CLOSE, '&Close')

src/m/a/matplotlib-1.3.1/examples/user_interfaces/mathtext_wx.py   matplotlib(Download)
        # File Menu
        menu = wx.Menu()
        menu.Append(wx.ID_EXIT, "E&xit\tAlt-X", "Exit this simple sample")
        menuBar.Append(menu, "&File")
 

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next