PEATDB/plugins/titranalysis.py
def createMenuBar(self):
        """Create the menu bar for the application. """
        self.menu=Menu(self.mainwin)

        self.file_menu={ '01Open Ekin project':{'cmd':self.loadEkinProj},
                         '02Open DB':{'cmd':self.openDB},
                         '03Quit':{'cmd':self.quit}}
        self.file_menu=self.create_pulldown(self.menu,self.file_menu)
        self.menu.add_cascade(label='File',menu=self.file_menu['var'])

        self.util_menu={'01Edit Dict':{'cmd': self.editDict},
                        '02Autoset Residue Names':{'cmd': self.add_ResidueNames},
                        '03Autoset Residue Numbers':{'cmd': self.add_ResidueNumbers}}

        self.util_menu=self.create_pulldown(self.menu,self.util_menu)
        self.menu.add_cascade(label='Utils',menu=self.util_menu['var'])

        self.anal_menu={'01Chem. shift distrib':{'cmd': self.analysepKas},
                        '02Compare Across Nuclei':{'cmd': self.compareNuclei},
                        '03Ghost Mapping':{'cmd': self.doMapping}}
        self.anal_menu=self.create_pulldown(self.menu,self.anal_menu)
        self.menu.add_cascade(label='Analysis',menu=self.anal_menu['var'])
        self.mainwin.config(menu=self.menu)
        return
Create the menu bar for the application. 
Create the menu bar for the application.
Create the menu bar for the application .
def createMenuBar(self):
        self.menu=Menu(self.mainwin)
        self.file_menu={ '01Open Ekin project':{'cmd':self.loadEkinProj},
                         '02Open DB':{'cmd':self.openDB},
                         '03Quit':{'cmd':self.quit}}
        self.file_menu=self.create_pulldown(self.menu,self.file_menu)
        self.menu.add_cascade(label='File',menu=self.file_menu['var'])
        self.util_menu={'01Edit Dict':{'cmd': self.editDict},
                        '02Autoset Residue Names':{'cmd': self.add_ResidueNames},
                        '03Autoset Residue Numbers':{'cmd': self.add_ResidueNumbers}}
        self.util_menu=self.create_pulldown(self.menu,self.util_menu)
        self.menu.add_cascade(label='Utils',menu=self.util_menu['var'])
        self.anal_menu={'01Chem. shift distrib':{'cmd': self.analysepKas},
                        '02Compare Across Nuclei':{'cmd': self.compareNuclei},
                        '03Ghost Mapping':{'cmd': self.doMapping}}
        self.anal_menu=self.create_pulldown(self.menu,self.anal_menu)
        self.menu.add_cascade(label='Analysis',menu=self.anal_menu['var'])
        self.mainwin.config(menu=self.menu)
        return
def createMenuBar ( self ) : self . menu = Menu ( self . mainwin ) self . file_menu = { '01Open Ekin project' : { 'cmd' : self . loadEkinProj } , '02Open DB' : { 'cmd' : self . openDB } , '03Quit' : { 'cmd' : self . quit } } self . file_menu = self . create_pulldown ( self . menu , self . file_menu ) self . menu . add_cascade ( label = 'File' , menu = self . file_menu [ 'var' ] ) self . util_menu = { '01Edit Dict' : { 'cmd' : self . editDict } , '02Autoset Residue Names' : { 'cmd' : self . add_ResidueNames } , '03Autoset Residue Numbers' : { 'cmd' : self . add_ResidueNumbers } } self . util_menu = self . create_pulldown ( self . menu , self . util_menu ) self . menu . add_cascade ( label = 'Utils' , menu = self . util_menu [ 'var' ] ) self . anal_menu = { '01Chem. shift distrib' : { 'cmd' : self . analysepKas } , '02Compare Across Nuclei' : { 'cmd' : self . compareNuclei } , '03Ghost Mapping' : { 'cmd' : self . doMapping } } self . anal_menu = self . create_pulldown ( self . menu , self . anal_menu ) self . menu . add_cascade ( label = 'Analysis' , menu = self . anal_menu [ 'var' ] ) self . mainwin . config ( menu = self . menu ) return
Create the menu bar for the application.
Create the menu bar for the application .
"""Create the menu bar for the application. """
self