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

All Samples(3386)  |  Call(3217)  |  Derive(167)  |  Import(2)
Proxy of C++ Menu class

src/d/b/dbabble-HEAD/Trunk/clip.py   dbabble(Download)
#!/usr/bin/python
import wx
from wx import Frame, Menu, MenuBar, MenuItem
import os
import re
from string import atof
import cStringIO
 
        menubar = MenuBar(wx.MB_DOCKABLE)
 
        exp = Menu()
 
        self.addMenuItems(exp,['&Edge List (TXT)...',\
                                '&GraphML...',\
                                '&SQLite (DB)...',\
                                '&BIF XML...',\
                                '&CSV...',\
                                '&Ontology (OBO, OWL)...',\
                                '&Annotation File (OBO, ANN)...'])        
 
        file = Menu()
 
        self.addMenuItem(file,'&Quit\tCtrl+Q', self.OnQuit)
 
        edit = Menu()
        self.addMenuItems(edit,[['&Preferences', self.OnOpen]])
 
        view = Menu()
        insr = Menu()
        form = Menu()
        tool = Menu()
 
        self.addMenuItem(tool,'&Show Libaries', self.OnShowLibs)
 
        help = Menu()

src/s/i/simca-HEAD/test_scripts/wxdemo.py   simca(Download)
 
import sys
 
from wx import Frame, DefaultPosition, Size, Menu, MenuBar, App
from wx import EVT_MENU, EVT_CLOSE
 
from twisted.python import log
    def __init__(self, parent, ID, title):
        Frame.__init__(self, parent, ID, title, DefaultPosition, Size(300, 200))
        menu = Menu()
        menu.Append(ID_EXIT, "E&xit", "Terminate the program")
        menuBar = MenuBar()
        menuBar.Append(menu, "&File")
        self.SetMenuBar(menuBar)