PEATDB/Ekin/ModelDesign.py
def createMenuBar(self):
        """Create the menu bar for the application"""
        self.menu=Menu(self.main)
        self.file_menu={'01Open models file':{'cmd':self.loadModelsFile},                        
                        '02Quit':{'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.help_menu={ '01Online Help':{'cmd': self.help},
                         '02About':{'cmd': self.about},}
        self.help_menu=self.create_pulldown(self.menu,self.help_menu)
        self.menu.add_cascade(label='Help',menu=self.help_menu['var'])
        self.main.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.main)
        self.file_menu={'01Open models file':{'cmd':self.loadModelsFile},                        
                        '02Quit':{'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.help_menu={ '01Online Help':{'cmd': self.help},
                         '02About':{'cmd': self.about},}
        self.help_menu=self.create_pulldown(self.menu,self.help_menu)
        self.menu.add_cascade(label='Help',menu=self.help_menu['var'])
        self.main.config(menu=self.menu)
        return
def createMenuBar ( self ) : self . menu = Menu ( self . main ) self . file_menu = { '01Open models file' : { 'cmd' : self . loadModelsFile } , '02Quit' : { '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 . help_menu = { '01Online Help' : { 'cmd' : self . help } , '02About' : { 'cmd' : self . about } , } self . help_menu = self . create_pulldown ( self . menu , self . help_menu ) self . menu . add_cascade ( label = 'Help' , menu = self . help_menu [ 'var' ] ) self . main . 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