PEATDB/plugins/PEATSAplugin.py
def _createButtons(self, methods):
        """Dynamically create buttons for supplied methods, which is a tuple
            of (method name, label)"""
        mbutton=Menubutton(self.mainwin, text='Options', width=12,
                                         borderwidth=2, relief=RIDGE,
                                         activeforeground='red')
        menu=Menu(mbutton,tearoff=0)
        mbutton['menu']=menu
        mbutton.pack(side=BOTTOM,fill=BOTH)
        for m in methods:
            menu.add_radiobutton(label=self.gui_methods[m[0]], 
                                        indicatoron=0,                                       
                                        command=m[1])
        b=Button(self.mainwin,text='Create Calculation',command=self.createJobDialog)
        b.pack(side=BOTTOM,fill=BOTH)            
        return
Dynamically create buttons for supplied methods, which is a tuple
            of (method name, label)
Dynamically create buttons for supplied methods, which is a tuple
of (method name, label)
Dynamically create buttons for supplied methods which is a tuple of ( method name label )
def _createButtons(self, methods):
        mbutton=Menubutton(self.mainwin, text='Options', width=12,
                                         borderwidth=2, relief=RIDGE,
                                         activeforeground='red')
        menu=Menu(mbutton,tearoff=0)
        mbutton['menu']=menu
        mbutton.pack(side=BOTTOM,fill=BOTH)
        for m in methods:
            menu.add_radiobutton(label=self.gui_methods[m[0]], 
                                        indicatoron=0,                                       
                                        command=m[1])
        b=Button(self.mainwin,text='Create Calculation',command=self.createJobDialog)
        b.pack(side=BOTTOM,fill=BOTH)            
        return
def _createButtons ( self , methods ) : mbutton = Menubutton ( self . mainwin , text = 'Options' , width = 12 , borderwidth = 2 , relief = RIDGE , activeforeground = 'red' ) menu = Menu ( mbutton , tearoff = 0 ) mbutton [ 'menu' ] = menu mbutton . pack ( side = BOTTOM , fill = BOTH ) for m in methods : menu . add_radiobutton ( label = self . gui_methods [ m [ 0 ] ] , indicatoron = 0 , command = m [ 1 ] ) b = Button ( self . mainwin , text = 'Create Calculation' , command = self . createJobDialog ) b . pack ( side = BOTTOM , fill = BOTH ) return
Dynamically create buttons for supplied methods, which is a tuple
of (method name, label)
Dynamically create buttons for supplied methods which is a tuple of ( method name label )
"""Dynamically create buttons for supplied methods, which is a tuple
            of (method name, label)"""
self
methods