Did I find the right examples for you? yes no

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/wxDesigner/samples2.19/menu/menu_wdr.py   wxPython-In-Action(Download)
 
    item3 = wx.Menu()
    item3.Append( ID_TEST1, "Test 1\tF1", "", wx.ITEM_CHECK )
    item3.Append( ID_TEST2, "Test 2\tF2", "", wx.ITEM_CHECK )
    item3.Append( ID_TEST3, "Test 3\tF3", "", wx.ITEM_CHECK )
    item1.AppendMenu( ID_MENU, "Submenu", item3 )
 
 
    item4 = wx.Menu()
    item4.Append( ID_RADIO, "Radio 1", "", wx.ITEM_RADIO )
    item4 = wx.Menu()
    item4.Append( ID_RADIO, "Radio 1", "", wx.ITEM_RADIO )
    item4.Append( ID_RADIO, "Radio 2", "", wx.ITEM_RADIO )
    item1.AppendMenu( ID_MENU, "Radio submenu", item4 )
 

src/p/y/pyserial-2.6/examples/wxTerminal.py   pyserial(Download)
        self.SetMenuBar(self.frame_terminal_menubar)
        wxglade_tmp_menu = wx.Menu()
        wxglade_tmp_menu.Append(ID_CLEAR, "&Clear", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.Append(ID_SAVEAS, "&Save Text As...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.AppendSeparator()
        wxglade_tmp_menu.Append(ID_SETTINGS, "&Port Settings...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.Append(ID_TERM, "&Terminal Settings...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.AppendSeparator()
        wxglade_tmp_menu.Append(ID_EXIT, "&Exit", "", wx.ITEM_NORMAL)

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/derived/derived.py   wxPython-In-Action(Download)
    def CreateMyMenuBar(self):
        file_menu = wx.Menu()
        file_menu.Append(ID_ABOUT, "About...", "Program info")
        file_menu.Append(ID_MYTEST, "Test dialog...", "Test dialog")
        file_menu.Append(ID_QUIT, "Quit...", "Quit program")

src/e/x/extirpation-HEAD/trunk/source/frame_main.py   extirpation(Download)
 
		temp_menu_sub.AppendSeparator()
		temp_menu_sub.Append(self.idZOOM25, "25%", "Zoom the display to one fourth the normal size.", wx.ITEM_RADIO)
		temp_menu_sub.Append(self.idZOOM50, "50%", "Zoom the display to half the normal size.", wx.ITEM_RADIO)
		temp_menu_sub.Append(self.idZOOM100, "100%", "Zoom the display to normal size.", wx.ITEM_RADIO)
		temp_menu_sub.Append(self.idZOOM200, "200%", "Zoom the display to double the normal size.", wx.ITEM_RADIO)
		self._perspectives_menu = wx.Menu()
 
		self.menu_statusbar = self._perspectives_menu.Append(self.idSTATUSBAR, "&Statusbar\tCtrl+V", "Show or hide the status bar.", wx.ITEM_CHECK)
		self._perspectives_menu.Check(self.idSTATUSBAR, True)
 

src/w/x/wxPython-In-Action-HEAD/wxDesigner/sample2.19_execise/dynamic/Dynamic_exec_wdr.py   wxPython-In-Action(Download)
def FileMenuBarFunc():
    item0 = wx.MenuBar()
 
    item1 = wx.Menu()
    item1.Append( wx.ID_ABOUT, "About", "" )
    item1.Append( ID_MENU_Test, "Test...", "Start the test" )
    item1.Append( wx.ID_EXIT, "Quit", "" )

src/p/y/py2app-0.7.3/examples/wxPython/2.5/doodle/doodle.py   py2app(Download)
        for k in keys:
            text = self.menuColours[k]
            menu.Append(k, text, kind=wx.ITEM_CHECK)
        self.Bind(wx.EVT_MENU_RANGE, self.OnMenuSetColour, id=100, id2=200)
        self.Bind(wx.EVT_UPDATE_UI_RANGE, self.OnCheckMenuColours, id=100, id2=200)
        menu.Break()
 
        for x in range(1, self.maxThickness+1):
            menu.Append(x, str(x), kind=wx.ITEM_CHECK)

src/p/y/py2app-0.7.3/examples/wxPython/2.4/doodle/doodle.py   py2app(Download)
        for k in keys:
            text = self.menuColours[k]
            menu.Append(k, text, kind=wx.ITEM_CHECK)
        wx.EVT_MENU_RANGE(self, 100, 200, self.OnMenuSetColour)
        wx.EVT_UPDATE_UI_RANGE(self, 100, 200, self.OnCheckMenuColours)
        menu.Break()
 
        for x in range(1, self.maxThickness+1):
            menu.Append(x, str(x), kind=wx.ITEM_CHECK)

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/t/w/Twisted-12.3.0/doc/core/examples/wxacceptance.py   Twisted(Download)
    def __init__(self, parent, ID, title):
        wxFrame.__init__(self, parent, ID, title, wxDefaultPosition, wxSize(300, 200))
        menu = wxMenu()
        menu.Append(ID_DIALOG, "D&ialog", "Show dialog")
        menu.Append(ID_EXIT, "E&xit", "Terminate the program")

src/p/y/pyserial-HEAD/trunk/pyserial/examples/wxTerminal.py   pyserial(Download)
        self.SetMenuBar(self.frame_terminal_menubar)
        wxglade_tmp_menu = wx.Menu()
        wxglade_tmp_menu.Append(ID_CLEAR, "&Clear", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.Append(ID_SAVEAS, "&Save Text As...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.AppendSeparator()
        wxglade_tmp_menu.Append(ID_SETTINGS, "&Port Settings...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.Append(ID_TERM, "&Terminal Settings...", "", wx.ITEM_NORMAL)
        wxglade_tmp_menu.AppendSeparator()
        wxglade_tmp_menu.Append(ID_EXIT, "&Exit", "", wx.ITEM_NORMAL)

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