PEATDB/Compare.py
def createResCheckbuttons(self, resnums):
        """Check buttons for residue list passed in ResiduesfromNames"""
        def updatelabels(tag, state):
            resnums=list(self.checkbuttons.getcurselection())   
            self.labelResidues(resnums)
            
        if hasattr(self, 'checkbuttons'):
            self.checkbuttons.destroy()
        self.checkbuttons = Pmw.RadioSelect(self.cbfr.interior(),
                buttontype = 'checkbutton',
                orient = 'vertical',
                labelpos = 'w',
                command = updatelabels,
                label_text = 'Residues:')       
        self.checkbuttons.pack(fill=BOTH,expand=1)
        for r in resnums:
            self.checkbuttons.add(r)            
        return
Check buttons for residue list passed in ResiduesfromNames
Check buttons for residue list passed in ResiduesfromNames
Check buttons for residue list passed in ResiduesfromNames
def createResCheckbuttons(self, resnums):
        def updatelabels(tag, state):
            resnums=list(self.checkbuttons.getcurselection())   
            self.labelResidues(resnums)
        if hasattr(self, 'checkbuttons'):
            self.checkbuttons.destroy()
        self.checkbuttons = Pmw.RadioSelect(self.cbfr.interior(),
                buttontype = 'checkbutton',
                orient = 'vertical',
                labelpos = 'w',
                command = updatelabels,
                label_text = 'Residues:')       
        self.checkbuttons.pack(fill=BOTH,expand=1)
        for r in resnums:
            self.checkbuttons.add(r)            
        return
def createResCheckbuttons ( self , resnums ) : def updatelabels ( tag , state ) : resnums = list ( self . checkbuttons . getcurselection ( ) ) self . labelResidues ( resnums ) if hasattr ( self , 'checkbuttons' ) : self . checkbuttons . destroy ( ) self . checkbuttons = Pmw . RadioSelect ( self . cbfr . interior ( ) , buttontype = 'checkbutton' , orient = 'vertical' , labelpos = 'w' , command = updatelabels , label_text = 'Residues:' ) self . checkbuttons . pack ( fill = BOTH , expand = 1 ) for r in resnums : self . checkbuttons . add ( r ) return
Check buttons for residue list passed in ResiduesfromNames
Check buttons for residue list passed in ResiduesfromNames
"""Check buttons for residue list passed in ResiduesfromNames"""
self
resnums